View Single Post
Join Date: Jul 2008
Old 09-19-2008 , 03:07   Re: Spawning a prop_physics and making it follow a player.
Reply With Quote #6

I read the whole article, and couldn't see anywhere that it can't be parented. Unless you are saying this from your own experience, in which case I apologize.

For the moment I am doing away with the parenting and just trying to spawn it. However, when I run the command my server pops up with a message saying: 292/ - prop_physics: UTIL_SetModel: not precached: models/Hat/model.mdl

This is the code I use to spawn the prop and give it the hat model:
PHP Code:
new Float:fPosition[3]
sModel "models/Hat/model.mdl"
new iModel CreateEntityByName("prop_physics");
Any help would be great, thanks.

I am assuming that I have to somehow "precache" the model with the server? If so, how would I go about doing this?

I sv_pure is set to 0, just incase you were wondering.

Last edited by Spazman0; 09-19-2008 at 04:18.
Spazman0 is offline