Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_Enter_Building.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6class SCR_Tutorial_Seizing_Enter_Building : SCR_BaseTutorialStage
7{
8 //------------------------------------------------------------------------------------------------
9 override protected void Setup()
10 {
11 RegisterWaypoint("SEIZING_BuildingService", "", "CUSTOM").SetOffsetVector("0 1 0");
12
13 IEntity ent = GetGame().GetWorld().FindEntityByName("LIGHTHOUSE_SUPPLIES");
14 if (!ent)
15 return;
16
17 SCR_ResourceComponent resComp = SCR_ResourceComponent.FindResourceComponent(ent);
18 if (!resComp)
19 return;
20
21 SCR_ResourceContainer resourceContainer = resComp.GetContainer(EResourceType.SUPPLIES);
22 if (resourceContainer)
23 resourceContainer.IncreaseResourceValue(400);
24 }
25
26 //------------------------------------------------------------------------------------------------
27 override protected bool GetIsFinished()
28 {
29 return IsBuildingModeOpen();
30 }
31}
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
proto external BaseWorld GetWorld()
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
bool IncreaseResourceValue(float value, bool notifyChange=true)
void SetOffsetVector(vector offset)