View Single Post
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-19-2018 , 19:36   Problems with creating a prop_physics
Reply With Quote #1

Hello guys, i got problems to create a prop_physics. Actually this code works for creating a prop_dynamic, but when i replace it by "prop_physics", then the entity doesnt appear in game.
Code:
int pan = CreateEntityByName("prop_dynamic");
DispatchKeyValue(pan, "model", "models/weapons/c_models/c_frying_pan/c_frying_pan.mdl");
TeleportEntity(pan, vecPos, NULL_VECTOR, NULL_VECTOR);
DispatchSpawn(pan);         
ActivateEntity(pan);
Obviously I forgot to add something but I don't know what.
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline