Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MapHintCondition.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerHintCondition()]
3 {
4  //------------------------------------------------------------------------------------------------
5  override protected void OnInitCondition(Managed owner)
6  {
7  SCR_MapEntity mapEntity = SCR_MapEntity.GetMapInstance();
8  if (mapEntity)
9  {
10  mapEntity.GetOnMapOpen().Insert(OnMapOpen);
11  mapEntity.GetOnMapClose().Insert(OnMapClosed);
12  }
13  }
14 
15  //------------------------------------------------------------------------------------------------
16  override protected void OnExitCondition(Managed owner)
17  {
18  SCR_MapEntity mapEntity = SCR_MapEntity.GetMapInstance();
19  if (mapEntity)
20  {
21  mapEntity.GetOnMapOpen().Remove(OnMapOpen);
22  mapEntity.GetOnMapClose().Remove(OnMapClosed);
23  }
24  }
25 
26  //------------------------------------------------------------------------------------------------
28  void OnMapOpen(MapConfiguration config)
29  {
30  Activate();
31  }
32 
33  //------------------------------------------------------------------------------------------------
35  void OnMapClosed(MapConfiguration config)
36  {
37  Deactivate();
38  }
39 }
SCR_BaseEditorHintCondition
Definition: SCR_BaseEditorHintCondition.c:2
SCR_MapHintCondition
Definition: SCR_MapHintCondition.c:2
Deactivate
protected void Deactivate()
Definition: SCR_BaseHintCondition.c:27
SCR_MapEntity
Map entity.
Definition: SCR_MapEntity.c:20
Activate
protected void Activate()
Definition: SCR_BaseHintCondition.c:9
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468