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

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setanim" )
	{
		player.SetAnim();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Player

Categories: Server methods | Player