Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MineEquipWeaponAction.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4 
5  //------------------------------------------------------------------------------------------------
6  override bool CanBeShownScript(IEntity user)
7  {
8  SCR_PressureTriggerComponent mineTriggerComponent = SCR_PressureTriggerComponent.Cast(GetOwner().FindComponent(SCR_PressureTriggerComponent));
9  if (mineTriggerComponent && mineTriggerComponent.IsActivated())
10  return false;
11 
12  return super.CanBeShownScript(user);
13  }
14 
15 };
16 
17 //------------------------------------------------------------------------------------------------
19 {
20  //------------------------------------------------------------------------------------------------
21  override bool CanBeShownScript(IEntity user)
22  {
23  SCR_PressureTriggerComponent mineTriggerComponent = SCR_PressureTriggerComponent.Cast(GetOwner().FindComponent(SCR_PressureTriggerComponent));
24  if (mineTriggerComponent && mineTriggerComponent.IsActivated())
25  return false;
26 
27  return super.CanBeShownScript(user);
28  }
29 }
SCR_EquipWeaponAction
Equip weapon.
Definition: SCR_EquipWeaponAction.c:3
SCR_EquipWeaponHolsterAction
Pickup weapon to holster position, without equipping it.
Definition: SCR_EquipWeaponAction.c:217
SCR_MineEquipHolsterAction
Definition: SCR_MineEquipWeaponAction.c:18
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
SCR_MineEquipWeaponAction
Definition: SCR_MineEquipWeaponAction.c:2