View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 12-19-2013 , 00:57   Re: Setting player velocity?
Reply With Quote #5

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
__________________
retired
shavit is offline