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]
GetClientEyePosition(target, fPosition)
new String:sModel[64]
sModel = "models/Hat/model.mdl"
new iModel = CreateEntityByName("prop_physics");
TeleportEntity(iModel, fPosition, NULL_VECTOR, NULL_VECTOR);
SetEntityModel(iModel,sModel);
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.