Is there a way to set a "prop_physics" gravity? I am able to easily set a client's gravity with "SetEntityGravity", but this is not working for other types of props within the game. Here is the code I am using:
PHP Code:
stock CreateProp(Float:Origin[3])
{
iProp = CreateEntityByName("prop_physics");
if(IsValidEntity(iProp))
{
DispatchKeyValue(iProp, "model", "models/props_wasteland/prison_toilet01.mdl");
DispatchSpawn(iProp);
SetEntityGravity(iProp, 4.0); // NOT WORKING
TeleportEntity(iProp, Origin, NULL_VECTOR, NULL_VECTOR);
}
}
Thanks in advance!
__________________