You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:CheckLOS"
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{LUAFunction | {{LUAFunction | ||
|Name = CheckLOS | |Name = CheckLOS | ||
| − | |Description = | + | |Description = Checks LOS between spawns. |
|Param1 = Spawn | |Param1 = Spawn | ||
| − | |Param1Desc = is the spawn | + | |Param1Desc = is the spawn |
|Param2 = target | |Param2 = target | ||
|Param2Desc = is the target | |Param2Desc = is the target | ||
| Line 14: | Line 14: | ||
|ExampleDesc = An NPC with this script will check line of sight to the player. Returns 1 if in view | |ExampleDesc = An NPC with this script will check line of sight to the player. Returns 1 if in view | ||
|Notes = Can be used on a player or a NPC | |Notes = Can be used on a player or a NPC | ||
| + | |||
| + | https://git.eq2emu.com/devn00b/EQ2EMu/commit/ded66a36bf636409c058af649881d3d699b49511 | ||
}} | }} | ||
Latest revision as of 13:14, 14 June 2022
LUA:AllFunctions - CheckLOS
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Checks LOS between spawns.
Syntax
CheckLOS(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (target)
- param1 is the spawn
- 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. Returns 1 if in view
Notes
Can be used on a player or a NPC
https://git.eq2emu.com/devn00b/EQ2EMu/commit/ded66a36bf636409c058af649881d3d699b49511