Quote:
Originally Posted by shavit
That works too, confirmed;
Code:
/**
* Sets the Base velocity of an entity.
* The base velocity is the velocity applied
* to the entity from other sources .
*
* @param entity Entity index.
* @param vel An 3 dim array
* @noreturn
*/
stock Entity_SetBaseVelocity(entity, const Float:vec[3])
{
SetEntPropVector(entity, Prop_Data, "m_vecBaseVelocity", vec);
}
/ smlib
|
This looks like a much better way to do it. The kind of thing I was thinking of, but thought the engine would not allow it.
Thanks for this :)