Difference between revisions of "NDOIH"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 5: Line 5:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasAccessLevel()</p> || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasAccessLevel()</p>Params<br>accesslevel - access level requirement<br>bool - true if users satisfy's requirement || Does the attached user's access level satisfy the access requirement.
 
|}
 
|}
 
</center>
 
</center>
Line 16: Line 16:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasEventHandler()</p>  || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasEventHandler()</p>Params<br>eventtype - even type name<br>Returns<br>true if exists || Is there an event handler registered on any module attached to this object that matches the parameters.
 
|}
 
|}
 
</center>
 
</center>
Line 27: Line 27:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToLoc()</p>  || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToLoc()</p>Params<br>location - location to check<br>number - (number) Optional: Height of line. Ignore all collision that is lower than this height (Default 0.0f)<br>Returns<br>bool - True if it has LOS, false if not. || Does this object have line of sight to the specified location.
 
|}
 
|}
 
</center>
 
</center>
Line 38: Line 38:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToObj()</p>  || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">HasLineOfSightToObj()</p>Params<br>gameobject - target game object<br>number - Optional: Height of line. Ignore all collision that is lower than this height (Default 0.0f)<br>Returns<br>bool - True if it has LOS, false if not. || Does this object have line of sight to the specified object (This should be used for objects so the collision for the targetted object can be ignored for the LOS check).
 
|}
 
|}
 
</center>
 
</center>

Revision as of 07:30, 27 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

Object Functions & Examples

HasAccessLevel()

Params
accesslevel - access level requirement
bool - true if users satisfy's requirement
Does the attached user's access level satisfy the access requirement.

Example

 CODE EXAMPLE BLOCK

HasEventHandler()

Params
eventtype - even type name
Returns
true if exists
Is there an event handler registered on any module attached to this object that matches the parameters.

Example

 CODE EXAMPLE BLOCK

HasLineOfSightToLoc()

Params
location - location to check
number - (number) Optional: Height of line. Ignore all collision that is lower than this height (Default 0.0f)
Returns
bool - True if it has LOS, false if not.
Does this object have line of sight to the specified location.

Example

 CODE EXAMPLE BLOCK

HasLineOfSightToObj()

Params
gameobject - target game object
number - Optional: Height of line. Ignore all collision that is lower than this height (Default 0.0f)
Returns
bool - True if it has LOS, false if not.
Does this object have line of sight to the specified object (This should be used for objects so the collision for the targetted object can be ignored for the LOS check).

Example

 CODE EXAMPLE BLOCK

HasObjVar()

.

Example

 CODE EXAMPLE BLOCK

HasObjectTag()

.

Example

 CODE EXAMPLE BLOCK

HasModule()

.

Example

 CODE EXAMPLE BLOCK

HasSharedObjectProperty()

.

Example

 CODE EXAMPLE BLOCK

HasTimer()

.

Example

 CODE EXAMPLE BLOCK