How would I go about making an entity spin in a randomized direction after I spawn it? I understand the direction and velocity parts, etc, I just need to know how to do the spin part. I have played around with the "angles" with TeleportEntity, but it doesn't seem to do what I am needing.
Just think if something exploded how the pieces go it random directions and spin - that's what I am after.
PHP Code:
stock CreateEntityAndSpin()
{
decl iEntity;
iEntity = CreateEntityByName("prop_physics");
if(IsValidEntity(iEntity))
{
// Spawn entity and make it spin...
}
}
Thanks in advance!
__________________