Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
BaseGameTriggerEntity.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
12class BaseGameTriggerEntityClass: GenericEntityClass
13{
14}
15
16class BaseGameTriggerEntity: GenericEntity
17{
19
24
25 // Check if the given entity is inside the Trigger shape (bypasses the defined query and filter)
26 proto external bool QueryEntityInside(notnull IEntity ent);
27 // Queries entities which are inside the Trigger shape based on the defined filter
28 proto external void QueryEntitiesInside();
29 // Compares the given entity with the defined filters (Name and/or Class)
30 proto external bool DefaultEntityFilterForQuery(IEntity ent);
35 proto external int GetEntitiesInside(out notnull array<IEntity> outEntities);
36 // Sets the sphere radius of the Trigger
37 proto external void SetSphereRadius(float radius);
38 // Gets the current sphere radius of the Trigger
39 proto external float GetSphereRadius();
40 // Sets the update rate of the trigger in seconds
41 proto external void SetUpdateRate(float updateRate);
42 // Gets the update rate of the trigger in seconds
43 proto external float GetUpdateRate();
44 // Set the periodic queries
45 proto external void EnablePeriodicQueries(bool enable);
46 // Is periodic queries enabled?
47 proto external bool IsPeriodicQueriesEnabled();
49 proto external void AddFilterName(string name);
51 proto external bool RemoveFilterName(string name);
53 proto external void AddClassType(typename classType);
55 proto external bool RemoveClassType(typename classType);
57 proto external void AddPrefabFilter(PrefabFilter prefabFilter);
59 proto external bool RemovePrefabFilter(PrefabFilter prefabFilter);
69
70 // callbacks
71
73 event protected void OnActivate(IEntity ent);
75 event protected void OnDeactivate(IEntity ent);
77 event protected void OnQueryFinished(bool bIsEmpty){ Event_OnQueryFinished.Invoke(this); Event_OnQueryFinished.Clear(); };
78}
79
SCR_EAIThreatSectorFlags flags
override void OnDeactivate()
override void OnActivate()
event void OnQueryFinished()
Triggered when the result of QueryAmbientSoundsBySphere query becomes available.
proto external void AddClassType(typename classType)
Add a class type to the filter.
proto external bool RemoveClassType(typename classType)
Remove a class type from the filter.
proto external int GetEntitiesInside(out notnull array< IEntity > outEntities)
proto external void SetUpdateRate(float updateRate)
proto external bool RemovePrefabFilter(PrefabFilter prefabFilter)
Remove a prefab filter from the filters.
proto external EQueryEntitiesFlags GetTraceMask()
Get flag(s) from the traces done by the the trigger.
proto external void AddFilterName(string name)
Add a name to the filter.
proto external void SetTraceMask(EQueryEntitiesFlags flags)
proto external bool IsPeriodicQueriesEnabled()
proto external void QueryEntitiesInside()
ScriptInvoker GetOnQueryFinished()
proto external bool RemoveFilterName(string name)
Remove a name from the filter.
proto external bool DefaultEntityFilterForQuery(IEntity ent)
proto external float GetSphereRadius()
proto external void EnablePeriodicQueries(bool enable)
proto external void ClearTraceMask(EQueryEntitiesFlags flags)
Clears trace mask.
proto external float GetUpdateRate()
proto external void AddPrefabFilter(PrefabFilter prefabFilter)
Add a prefab filter to the filters.
BaseGameTriggerEntityClass Event_OnQueryFinished
proto external bool QueryEntityInside(notnull IEntity ent)
proto external void SetSphereRadius(float radius)
EQueryEntitiesFlags
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134