Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SpawnAtPlayersAttribute.c
Go to the documentation of this file.
1
4// Script File
7{
8 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
9 {
10 //If opened in global attributes
11 if (!IsGameMode(item))
12 return null;
13
14 BaseGameMode gameMode = GetGame().GetGameMode();
15 if (!gameMode)
16 return null;
17
19 if (!playerSpawnPointManager)
20 return null;
21
23 }
24
25 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
26 {
27 if (!var)
28 return;
29
30 //If opened in global attributes
31 if (!IsGameMode(item))
32 return;
33
34 BaseGameMode gameMode = GetGame().GetGameMode();
35 if (!gameMode)
36 return;
37
39 if (!playerSpawnPointManager)
40 return;
41
42 //Notification
43 playerSpawnPointManager.EnablePlayerSpawnPoints(var.GetBool(), playerID);
44 }
45};
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateBool(bool value)
void EnablePlayerSpawnPoints(bool enable, int notificationPlayerID=-1)