Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_Enter_Building.c
Go to the documentation of this file.
1
[
EntityEditorProps
(insertable:
false
)]
2
class
SCR_Tutorial_Seizing_Enter_BuildingClass
:
SCR_BaseTutorialStageClass
3
{
4
}
5
6
class
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
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
EResourceType
EResourceType
Definition
SCR_ResourceContainer.c:2
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
SCR_BaseTutorialStageClass
Definition
SCR_BaseTutorialStage.c:3
SCR_BaseTutorialStage
Definition
SCR_BaseTutorialStage.c:8
SCR_BaseTutorialStage::Setup
void Setup()
Definition
SCR_BaseTutorialStage.c:208
SCR_BaseTutorialStage::IsBuildingModeOpen
bool IsBuildingModeOpen()
Definition
SCR_BaseTutorialStage.c:343
SCR_BaseTutorialStage::GetIsFinished
bool GetIsFinished()
Definition
SCR_BaseTutorialStage.c:214
SCR_BaseTutorialStage::RegisterWaypoint
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
Definition
SCR_BaseTutorialStage.c:293
SCR_ResourceContainer
Definition
SCR_ResourceContainer.c:35
SCR_ResourceContainer::IncreaseResourceValue
bool IncreaseResourceValue(float value, bool notifyChange=true)
Definition
SCR_ResourceContainer.c:529
SCR_Tutorial_Seizing_Enter_BuildingClass
Definition
SCR_Tutorial_Seizing_Enter_Building.c:3
SCR_Waypoint::SetOffsetVector
void SetOffsetVector(vector offset)
Definition
SCR_Waypoint.c:56
scripts
Game
GameMode
Tutorial
Stages
Conflict
SCR_Tutorial_Seizing_Enter_Building.c
Generated by
1.17.0