Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WallGroup.c
Go to the documentation of this file.
1 class SCR_WallGroup
6 {
7  ref array<ref SCR_WallPair> m_aWallPairs = {};
8  ref array<float> m_aWeights = {};
9 
10  float m_fWallLength;
11 
12  //------------------------------------------------------------------------------------------------
15  SCR_WallPair GetRandomWall()
16  {
17  int index = SCR_ArrayHelper.GetWeightedIndex(m_aWeights, Math.RandomFloat01());
18  return m_aWallPairs.Get(index);
19  }
20 }
SCR_ArrayHelper
Definition: SCR_ArrayHelper.c:1
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition: SCR_DestructionSynchronizationComponent.c:17
SCR_WallGroup
Definition: SCR_WallGroup.c:5
SCR_WallPair
Definition: SCR_WallPair.c:1