DayZ 1.24
Loading...
Searching...
No Matches
RandomGeneratorSyncManager.c
Go to the documentation of this file.
9
11{
13
16
21
22 void Update()
23 {
24 for (int i = 0; i < USAGE_COUNT; i++)
25 randomValuesArray[i] = m_player.Random01();
26 }
27
28
35
37 {
38 return GetRandom01(usage_index) * (max - min) + min;
39 }
40}
float randomValuesArray[USAGE_COUNT]
float GetRandomInRange(RandomGeneratorSyncUsage usage_index, float min, float max)
float GetRandom01(RandomGeneratorSyncUsage usage_index)
void RandomGeneratorSyncManager(DayZPlayer player)
enum RandomGeneratorSyncUsage USAGE_COUNT
DayZPlayer m_player
proto native volatile void Update()