Skip to content

function npcPlayAnimation (server-side)

Available since version: 0.3.0

Queues a finite animation. Completion is reported by onNpcActionFinished.

Declaration

number npcPlayAnimation(number npc_id, string animation, number|nil timeout_ms)

Parameters

  • number npc_id: Server NPC id.
  • string animation: Gothic animation name.
  • number|nil timeout_ms: Execution timeout, 1-30000 ms; defaults to 10000.

Returns number

Action id, or -1 when rejected.