ConnectNPC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
note=Prior to version 1.5, script was mandatory.| | note=Prior to version 1.5, script was mandatory.| | ||
relfuncs=*[[ConnectNPCEx]] | relfuncs=*[[ConnectNPCEx]] | ||
[[IsPlayerNPC]] | *[[IsPlayerNPC]] | ||
}} | }} |
Revision as of 16:32, 24 December 2022
Description:
Connect an NPC to the server
Parameters:
(name, script="", host="127.0.0.1")
name : The name for the NPC to use.
script : The script NPC must use. This script must reside in npcscripts folder.(with the ".nut" extension)
host : This paramter is optional.
Return Values:
This function does not return any specific values.
Important Note:
Prior to version 1.5, script was mandatory.
Example
function onScriptLoad() { ConnectNPC("[Bot]John", "test.nut"); }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.