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

int createNpc(string name)

Parameters

  • string name: Name for the created NPC.

Returns int

Internal npc id (negative) or 0 on failure.