function
createNpc (client-side)
Available since version: 0.1.1
Note
By default NPCs won't be added to world. In order to do that, you have to call spawnNpc.
This function will create NPC.
Declaration
int createNpc(string name)
Parameters
string
name: the name of the NPC.
Returns int
The id of created NPC starting from -1
and going down.