NDMobileTemplates

From Legends of Aria Admin and Modding Wiki
Revision as of 01:56, 5 December 2019 by Gizmo (talk | contribs) (Created page with "<p style="width:60%;margin: 0 auto">[Main] [Lua Examples]</p> <center><p style="width: 60%">A B C [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[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

AddView(eventid,searcher,frequency)

eventid - Event identifier for events
searcher - Object searcher that defines the view
frequency - Update frequency check in seconds.
The frequency argument may be omitted, the View will default to 0.25 seconds for the frequency. The minimum value of frequency is 0.1 seconds.

Example of adding a view to a object

 --this will add a view that will interact with players within 30 units
 --It will check and update every 0.5 seconds
 AddView("UniqueViewHandler",SearchPlayerInRange(30,true),0.5)