CreateNPC: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Creates a NPC.}} | ||
{{FuncSyntax|CreateNPC(x, y, z, h)}} | {{FuncSyntax|CreateNPC(x, y, z, h)}} | ||
Line 14: | Line 14: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPackageStart", function() | |||
CreateNPC(128959.1015625, 79325.328125, 1579.2750244141, 84.066261291504) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[DestroyNPC]] | |||
* [[CreateNPC]] |
Revision as of 04:29, 17 November 2019
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
- __EDIT_ME__
Example
AddEvent("OnPackageStart", function()
CreateNPC(128959.1015625, 79325.328125, 1579.2750244141, 84.066261291504)
end)