No categories assigned

LUA:CheckLOS

Revision as of 12:44, 14 June 2022 by Cynnar (talk | contribs) (Created page with "{{LUAFunction |Name = CheckLOS |Description = Adds a character title to a spawn if not already present |Param1 = Spawn |Param1Desc = is the spawn we want to add a title to. |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - CheckLOS

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds a character title to a spawn if not already present

Syntax

CheckLOS(param1, param2)

Parameters

Required - param1 (Spawn), param2 (target)
param1 is the spawn we want to add a title to.
param2 is the target


Example

function hailed(NPC, Player)
	CheckLOS(NPC, Player)
end

An NPC with this script will check line of sight to the player

Notes

Can be used on a player or a NPC