Skip to content

function getNpcLastActionId (server-side)

Available since version: 0.3.0

This function gets last action identifier, that was enqued to the NPC action queue. Every action in queue has associated unique id, by which can be identified.

Declaration

int getNpcLastActionId(int npc_id)

Parameters

  • int npc_id: the npc id.

Returns int

The last finished action identifier, otherwise -1.