No categories assigned

LUA:GetNPC

LUA Functions: GetNPC(param, id)

Returns the nearest spawn id to param. The parameter can be either the targeted player or the NPC.

Back to LUA Functions Index


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