Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MapWatchUIDeploy.c
Go to the documentation of this file.
1// hack incoming! just for prototype to see what gadgets in deploy map will look like
3{
4 //------------------------------------------------------------------------------------------------
6 {
9
10 ResourceName gadgetRes = "{78ED4FEF62BBA728}Prefabs/Items/Equipment/Watches/Watch_SandY184A.et";
11
12 if (!factionAffil || !factionAffil.GetAffiliatedFaction())
13 return gadgetRes;
14
15 if (factionAffil.GetAffiliatedFaction().GetFactionKey() == "USSR")
16 gadgetRes = "{6FD6C96121905202}Prefabs/Items/Equipment/Watches/Watch_Vostok.et";
17
18 return gadgetRes;
19 }
20
21 //------------------------------------------------------------------------------------------------
22 protected override string GetPrefabResource()
23 {
24 return GetGadgetForFaction();
25 }
26
27 //------------------------------------------------------------------------------------------------
29 {
30 return m_MapEntity;
31 }
32}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_MapEntity m_MapEntity
ResourceName GetGadgetForFaction()
override IEntity FindRelatedGadget()
override string GetPrefabResource()
proto external PlayerController GetPlayerController()