No categories assigned
LUA:SetTarget
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetTarget()
Sets the target of the spawn given by param1 to the spawn given by param2
Syntax
SetTarget(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (Spawn)
- param1 is the spawn who's target we want to set
- param2 is the spawn we want the first spawns target set to
Usage
function hailed(NPC, Spawn)
SetTarget(NPC, Spawn)
end
This will set the NPC's target to the player who hailes it.