Difference between revisions of "LUA:GetNPC"
John Adams (talk | contribs) (New page: == LUA Functions: GetNPC(param, id) == Returns the nearest '''spawn id''' to ''param''. The parameter can be either the targeted player or the NPC. [[Developer:LUA_Functions | Back to LUA...) |
(No difference)
|
Latest revision as of 17:53, 1 April 2009
LUA Functions: GetNPC(param, id)
Returns the nearest spawn id to param. The parameter can be either the targeted player or the NPC.
Syntax
var = GetNPC(param, id)
Parameters
Required: param (int) - must be one of the vars in the function params, usually "NPC" or "Spawn"
Required: id (int) - must be a valid id in the spawn table
Usage
Need a usage example