CreateNPC

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
CreateNPC

Type: Function
Context: Server
Introduced: v1.0

Description

Creates a NPC.

Syntax

CreateNPC(x, y, z, h)

Parameters

  • x
    X location
  • y
    Y location
  • z
    Z location
  • h
    Heading of the npc

Return Value

  • The NPC identifier

Example

AddEvent("OnPackageStart", function()
	CreateNPC(128959.1015625, 79325.328125, 1579.2750244141, 84.066261291504)
end)

See also