Difference between revisions of "NDGIH"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
 
Line 6: Line 6:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToLoc() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToLoc()Params<br>location - original position<br>location - destination position<br>height - optional height of line. Ignore all collision that is lower then this number<br>Returns<br>bool - true if worked, false if not || Does LOS exist from origin to destination at specified height.
 
|}
 
|}
 
</center>
 
</center>
Line 17: Line 17:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasView() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasView()<br>Params<br>eventid - event identifier to look for || Does this object have a view with the specified event identifier.
 
|}
 
|}
 
</center>
 
</center>

Latest revision as of 18:21, 23 November 2019

[Main] [Lua Examples]

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Global Functions & Examples

HasLineOfSightToLoc()Params
location - original position
location - destination position
height - optional height of line. Ignore all collision that is lower then this number
Returns
bool - true if worked, false if not

Does LOS exist from origin to destination at specified height.

Example

 CODE EXAMPLE BLOCK

HasView()
Params
eventid - event identifier to look for

Does this object have a view with the specified event identifier.

Example

 CODE EXAMPLE BLOCK