precache can only be done in spawn function

precache can only be done in spawn function

Hammer Mapping — Page [1]
juicebox

2009 Feb 1 • 8
I keep getting this. The map is compiled, and when it loads i can look around before i choose a team. As soon as i choose a team, it quits the map and says in the console:


Host_Error: PF_precache_model_I: 'models/w_medkit.mdl' Precache can only be done in spawn function


this might have been from puting medkits in the player_equip, but i removed the medkit part and still wont work

any ideas?
 
 
 
2009 Feb 15 at 17:48 UTC
eDan Co.
Mighty Typist

Real Live Hands-On Rabbi Medal
Consolation Medal
2007 Sep 24 • 2921
252 ₧
I have never used medkits.

Did you re-compile after removing the medkits?
May contain traces of invisible text.
 
 
 
2009 Feb 15 at 20:30 UTC
juicebox

2009 Feb 1 • 8
yeah ive never used them either :P.

i recompiled at least 4 times, without the player_equip, and the other times without medkits. :S
 
 
 
2009 Feb 15 at 22:42 UTC
Mate de Vita
Kelli

2008 Oct 4 • 2453
159 ₧
And did you make sure there were no medkits in the map before recompiling?
Also did you Export to .MAP before each recompile?
...and that's the bottom line because Mate de Vita said so.
 
 
 
2009 Feb 16 at 15:15 UTC
Page [1]