Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FreeRoamBuildingClientTriggerEntity.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/Building", description: "Defines a building radius (limits the camera range and draw the visual borders)")]
3 {
4 };
5 
7 {
8  protected ref ScriptInvokerEntity m_OnEntityEnter;
9  protected ref ScriptInvokerEntity m_OnEntityLeave;
10 
11  //------------------------------------------------------------------------------------------------
12  override void OnActivate(IEntity ent)
13  {
14  GetOnEntityEnterTrigger().Invoke(ent);
15  }
16 
17  //------------------------------------------------------------------------------------------------
19  override void OnDeactivate(IEntity ent)
20  {
21  GetOnEntityLeaveTrigger().Invoke(ent);
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  ScriptInvokerEntity GetOnEntityEnterTrigger()
26  {
27  if (!m_OnEntityEnter)
28  m_OnEntityEnter = new ScriptInvokerEntity();
29 
30  return m_OnEntityEnter;
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  ScriptInvokerEntity GetOnEntityLeaveTrigger()
35  {
36  if (!m_OnEntityLeave)
37  m_OnEntityLeave = new ScriptInvokerEntity();
38 
39  return m_OnEntityLeave;
40  }
41 
42  //------------------------------------------------------------------------------------------------
43  void SCR_FreeRoamBuildingClientTriggerEntity(IEntitySource src, IEntity parent)
44  {
45  SetEventMask(EntityEvent.INIT | EntityEvent.FRAME);
46  SetFlags(EntityFlags.NO_TREE);
47  }
48 };
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_FreeRoamBuildingClientTriggerEntity
Definition: SCR_FreeRoamBuildingClientTriggerEntity.c:6
SCR_FreeRoamBuildingBaseTriggerEntityClass
Definition: SCR_FreeRoamBuildingBaseTriggerEntity.c:1
ScriptInvokerEntity
ScriptInvokerBase< ScriptInvokerEntityMethod > ScriptInvokerEntity
Definition: SCR_ScriptInvokerHelper.c:92
SCR_FreeRoamBuildingClientTriggerEntityClass
Definition: SCR_FreeRoamBuildingClientTriggerEntity.c:2
SCR_FreeRoamBuildingBaseTriggerEntity
Definition: SCR_FreeRoamBuildingBaseTriggerEntity.c:5
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180