Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_DeployableInventoryItemEquipClothAction.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  override bool CanBeShownScript(IEntity user)
5  {
6  IEntity owner = GetOwner();
7  if (!owner)
8  return false;
9 
10  SCR_BaseDeployableInventoryItemComponent deployableItemComponent = SCR_BaseDeployableInventoryItemComponent.Cast(owner.FindComponent(SCR_BaseDeployableInventoryItemComponent));
11  if (!deployableItemComponent)
12  return true;
13 
14  if (deployableItemComponent.IsDeployed())
15  return false;
16 
17  return super.CanBeShownScript(user);
18  }
19 }
SCR_EquipClothAction
modded version for to be used with the inventory 2.0
Definition: SCR_EquipClothAction.c:3
SCR_DeployableInventoryItemEquipClothAction
Definition: SCR_DeployableInventoryItemEquipClothAction.c:2
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128