Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
BaseGameTriggerEntity.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class BaseGameTriggerEntityClass: GenericEntityClass
13 {
14 }
15 
16 class BaseGameTriggerEntity: GenericEntity
17 {
18  protected ref ScriptInvoker Event_OnQueryFinished = new ScriptInvoker();
19 
20  ScriptInvoker GetOnQueryFinished()
21  {
22  return Event_OnQueryFinished;
23  }
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);
61  proto external EQueryEntitiesFlags GetTraceMask();
66  proto external void SetTraceMask(EQueryEntitiesFlags flags);
68  proto external void ClearTraceMask(EQueryEntitiesFlags flags);
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 
OnQueryFinished
event protected void OnQueryFinished(bool bIsEmpty)
callback - query finished - occurs when the current query finished being processd and has updated res...
Definition: BaseGameTriggerEntity.c:77
ClearTraceMask
proto external void ClearTraceMask(EQueryEntitiesFlags flags)
Clears trace mask.
AddClassType
proto external void AddClassType(typename classType)
Add a class type to the filter.
BaseGameTriggerEntityClass
Definition: BaseGameTriggerEntity.c:12
RemoveClassType
proto external bool RemoveClassType(typename classType)
Remove a class type from the filter.
SetSphereRadius
proto external void SetSphereRadius(float radius)
QueryEntityInside
proto external bool QueryEntityInside(notnull IEntity ent)
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
GetUpdateRate
proto external float GetUpdateRate()
SetUpdateRate
proto external void SetUpdateRate(float updateRate)
AddPrefabFilter
proto external void AddPrefabFilter(PrefabFilter prefabFilter)
Add a prefab filter to the filters.
PrefabFilter
Definition: PrefabFilter.c:12
OnDeactivate
event protected void OnDeactivate(IEntity ent)
callback - deactivation - occurs when and entity which was activated (OnActivate) leaves the Trigger
Definition: SCR_BaseTriggerEntity.c:41
RemovePrefabFilter
proto external bool RemovePrefabFilter(PrefabFilter prefabFilter)
Remove a prefab filter from the filters.
QueryEntitiesInside
proto external void QueryEntitiesInside()
IsPeriodicQueriesEnabled
proto external bool IsPeriodicQueriesEnabled()
GetOnQueryFinished
ScriptInvoker GetOnQueryFinished()
Definition: BaseGameTriggerEntity.c:20
RemoveFilterName
proto external bool RemoveFilterName(string name)
Remove a name from the filter.
GetEntitiesInside
proto external int GetEntitiesInside(out notnull array< IEntity > outEntities)
DefaultEntityFilterForQuery
proto external bool DefaultEntityFilterForQuery(IEntity ent)
GetSphereRadius
proto external float GetSphereRadius()
SetTraceMask
proto external void SetTraceMask(EQueryEntitiesFlags flags)
GetTraceMask
proto external EQueryEntitiesFlags GetTraceMask()
Get flag(s) from the traces done by the the trigger.
AddFilterName
proto external void AddFilterName(string name)
Add a name to the filter.
Event_OnQueryFinished
BaseGameTriggerEntityClass Event_OnQueryFinished
EnablePeriodicQueries
proto external void EnablePeriodicQueries(bool enable)
OnActivate
event protected void OnActivate(IEntity ent)
callback - activation - occurs when and entity which fulfills the filter definitions enters the Trigg...
Definition: SCR_BaseTriggerEntity.c:35