Scripting/Server/Classes/Player/SetAnim
Plays an animation on the player (and for everyone who sees them). With one argument it is the animation id; with two the group and id. blend defaults to 100.
Syntax
player.SetAnim([group,] id [, blend])Arguments
- any group (optional)
- int id (optional)
- any blend (optional) –
blenddefaults to 100.
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setanim" )
{
player.SetAnim();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- player.SetWeapon
- player.ClearWeapons
- player.GetWeaponAmmoAtSlot
- player.RemoveLimb
- player.RemoveFromVehicle
- player.Spawn
- player.RespawnAt
- player.ForceToSpawnScreen
- player.CheckFileHash
Section: Player
Categories: Server methods | Player