Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DeployInventoryItemRestrictedAction.c
Go to the documentation of this file.
2 {
3  //------------------------------------------------------------------------------------------------
4  override bool CanBePerformedScript(IEntity user)
5  {
6  SCR_RestrictedDeployableSpawnPointComponent restrictedDeployableSpawnPointComp = SCR_RestrictedDeployableSpawnPointComponent.Cast(m_DeployableItemComp);
7  if (!restrictedDeployableSpawnPointComp)
8  return false;
9 
10  string reason;
11  bool canBePerformed = restrictedDeployableSpawnPointComp.CanDeployBePerformed(reason);
12  if (!reason.IsEmpty())
13  SetCannotPerformReason(reason);
14 
15  return canBePerformed;
16  }
17 }
SCR_DeployInventoryItemRestrictedAction
Definition: SCR_DeployInventoryItemRestrictedAction.c:1
SCR_DeployInventoryItemBaseAction
Definition: SCR_DeployInventoryItemBaseAction.c:1