No categories assigned
LUA:GetTarget
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: GetTarget()
Gets the target of the given spawn
Syntax
var = GetTarget(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's target we want to get
Usage
function hailed(NPC, Spawn)
Say(NPC, "You have " .. GetName(GetTarget(Spawn)) .. " targeted")
end
The NPC will respond with the name of the players target
Notes
Returns a spawn