4 override bool CanBeShownScript(IEntity user)
6 if (!m_AssemblyComponent)
9 return m_AssemblyComponent.IsDeployed();
13 override bool CanBePerformedScript(IEntity user)
19 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
21 PlayerController playerController =
GetGame().GetPlayerController();
23 if (!playerController)
26 SCR_CampaignNetworkComponent campaignNetworkComponent = SCR_CampaignNetworkComponent.Cast(playerController.FindComponent(SCR_CampaignNetworkComponent));
28 if (!campaignNetworkComponent)
31 campaignNetworkComponent.DeployMobileAsembly(m_AssemblyComponent,
false);
35 override bool GetActionNameScript(out
string outName)
37 if (!m_AssemblyComponent)
45 if (
SCR_FactionManager.SGetLocalPlayerFaction() != m_AssemblyComponent.GetParentFaction())
49 SCR_CampaignMobileAssemblyStandaloneComponent standaloneComponent = m_AssemblyComponent.GetStandaloneComponent();
51 if (standaloneComponent)
52 basesCovered = standaloneComponent.GetCountOfExclusivelyLinkedBases();
54 if (basesCovered == 0)
57 ActionNameParams[0] = basesCovered.ToString();
58 outName =
"#AR-Campaign_Action_Dismantle_BasesInfo-UC";