Scripting/Server/NPCs/npc.SetAnim

Plays an animation (group 0-24, id 0-249). Default blend 1000.

Syntax

npc.SetAnim(group, id [, blend])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setanim" )
	{
		// npc is a npc handle (see NPC members)
		npc.SetAnim( 0, 0 );
	}
}

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

Section: NPC members

Categories: Server functions | NPC members