Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialDeployMobileAssembly.c
Go to the documentation of this file.
2{
3 protected bool m_bIsActive;
4
5 //------------------------------------------------------------------------------------------------
6 bool IsActive()
7 {
8 return m_bIsActive;
9 }
10
11 //------------------------------------------------------------------------------------------------
12 void SetActive(bool activate)
13 {
14 m_bIsActive = activate;
15 }
16
17 //------------------------------------------------------------------------------------------------
19 override event void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
20 {
22 }
23
24 //------------------------------------------------------------------------------------------------
25 override event bool GetActionNameScript(out string outName)
26 {
27 if (!m_bIsActive)
28 outName = "#AR-Campaign_Action_Deploy-UC";
29 else
30 outName = "#AR-Campaign_Action_Dismantle-UC";
31
32 return true;
33 }
34
35 //------------------------------------------------------------------------------------------------
36 override event bool CanBePerformedScript(IEntity user)
37 {
38 return !m_bIsActive;
39 };
40}
override event bool CanBePerformedScript(IEntity user)
override event bool GetActionNameScript(out string outName)
override event void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
Called when someone tries to perform the action, user entity is typically character.