Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialSelectionUserAction.c
Go to the documentation of this file.
2 {
3  [Attribute("hello", UIWidgets.EditBox)]
4  protected string m_sStageName;
5 
6  [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_ETutorialArlandStageMasters))]
7  protected SCR_ETutorialArlandStageMasters m_sStageConfig;
8 
9  protected SCR_GameModeCampaign m_CampaignGamemode;
10  protected SCR_CampaignTutorialArlandComponent m_tutorialComponent;
11 
12  override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
13  {
14 
15  }
16 
17  //---------------------------------------------------------
18  override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
19  {
20 
23  return;
24 
25  m_tutorialComponent = SCR_CampaignTutorialArlandComponent.Cast(m_CampaignGamemode.FindComponent(SCR_CampaignTutorialArlandComponent));
26 
27  if(!m_tutorialComponent)
28  return;
29 
30  m_tutorialComponent.SetActiveConfig(m_sStageConfig);
31  }
32 
33  //------------------------------------------------------------------------------------------------
34  override bool CanBePerformedScript(IEntity user)
35  {
36  return true;
37  }
38 
39  //------------------------------------------------------------------------------------------------
40  override bool CanBroadcastScript()
41  {
42  return false;
43  }
44 
45  //------------------------------------------------------------------------------------------------
46  override bool GetActionNameScript(out string outName)
47  {
48  outName = m_sStageName;
49  return true;
50  }
51 
52  //------------------------------------------------------------------------------------------------
53  override bool CanBeShownScript(IEntity user)
54  {
55  return true;
56  };
57 }
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
ScriptedUserAction
Definition: ScriptedUserAction.c:12
SCR_ETutorialArlandStageMasters
SCR_ETutorialArlandStageMasters
Definition: SCR_ETutorialArlandStageMasters.c:1
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition: SCR_BaseGameModeComponent.c:15
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition: SCR_GameModeCampaign.c:1927
SCR_TutorialSelectionUserAction
Definition: SCR_TutorialSelectionUserAction.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_CampaignGamemode
protected SCR_GameModeCampaign m_CampaignGamemode
Definition: SCR_CampaignTutorialComponentArland.c:36