Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SpawnPreload.c
Go to the documentation of this file.
2 {
3  static const int MAX_DURATION_MS = 10000;
4 
5  static SCR_SpawnPreload PreloadSpawnPosition(vector position, float radius = 500)
6  {
7  if (g_Game.BeginPreload(g_Game.GetWorld(), position, radius, MAX_DURATION_MS / 1000))
8  {
9  SCR_SpawnPreload preload = new SCR_SpawnPreload();
10  preload.m_iMaxDuration = MAX_DURATION_MS;
11  preload.m_Position = position;
12 
13  return preload;
14  }
15 
16  return null;
17  }
18 
19  void SCR_SpawnPreload()
20  {
21  Print("SpawnPreload: preload started.", LogLevel.VERBOSE);
22  }
23 
24  void ~SCR_SpawnPreload()
25  {
26  Print("SpawnPreload: preload finished (took: " + Math.Round(m_fDuration) + "s).", LogLevel.VERBOSE);
27  }
28 };
m_fDuration
float m_fDuration
Definition: SendGoalMessage.c:437
SCR_SpawnPreload
Definition: SCR_SpawnPreload.c:1
SimplePreload
Definition: SimplePreload.c:1
position
vector position
Definition: SCR_DestructibleTreeV2.c:30