You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:CheckLOSByCoordinates"
(Created page with "{{LUAFunction |Name = CheckLOSByCoordinates |Description = Check LOS by coordinates |Param1 = Spawn |Param1Desc = is the spawn |Param2 = float |Param2Desc = is the X |Param3 =...") |
|||
| Line 18: | Line 18: | ||
|ExampleDesc = Check Line of Site for npc at 25, 25, 25 Returns 1 if in view | |ExampleDesc = Check Line of Site for npc at 25, 25, 25 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 | ||
}} | }} | ||
Revision as of 13:14, 14 June 2022
LUA:AllFunctions - CheckLOSByCoordinates
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Check LOS by coordinates
Syntax
CheckLOSByCoordinates(param1, param2, param3, param4)
Parameters
- Required - param1 (Spawn), param2 (float), param3 (float), param4 (float)
- param1 is the spawn
- param2 is the X
- param3 is the Y
- param4 is the Z
Example
function hailed(NPC, Player) CheckLOSByCoordinates((NPC, 25, 25, 25) end
Check Line of Site for npc at 25, 25, 25 Returns 1 if in view
Notes
Can be used on a player or a NPC
https://git.eq2emu.com/devn00b/EQ2EMu/commit/ded66a36bf636409c058af649881d3d699b49511