Skip to content

function createNpc (client-side)

Available since version: 0.3.0

Create a client-side NPC entry and return an internal npc id (<0).

Declaration

number createNpc(string name)

Parameters

  • string name: Name for the created NPC.

Returns number

Internal npc id (negative) or 0 on failure.