Scripting/Server/NPCs/npc.SetAnim
Plays an animation (group 0-24, id 0-249). Default blend 1000.
Syntax
npc.SetAnim(group, id [, blend])Arguments
- any group
- int id
- any blend (optional)
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.
Related pages
Section: NPC members
Categories: Server functions | NPC members