Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DeployableInventoryItemEquipClothAction.c
Go to the documentation of this file.
1
class
SCR_DeployableInventoryItemEquipClothAction
:
SCR_EquipClothAction
2
{
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
20
//------------------------------------------------------------------------------------------------
21
override
bool
CanBePerformedScript(
IEntity
user)
22
{
23
IEntity
owner =
GetOwner
();
24
if
(!owner)
25
return
false
;
26
27
SCR_BaseDeployableInventoryItemComponent
deployableItemComponent =
SCR_BaseDeployableInventoryItemComponent
.Cast(owner.
FindComponent
(
SCR_BaseDeployableInventoryItemComponent
));
28
if
(!deployableItemComponent)
29
return
true
;
30
31
if
(deployableItemComponent.
IsDeploying
())
32
return
false
;
33
34
return
super.CanBePerformedScript(user);
35
}
36
}
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_BaseDeployableInventoryItemComponent
Base class which all deployable inventory items inherit from.
Definition
SCR_BaseDeployableInventoryItemComponent.c:39
SCR_BaseDeployableInventoryItemComponent::IsDeployed
bool IsDeployed()
Definition
SCR_BaseDeployableInventoryItemComponent.c:284
SCR_BaseDeployableInventoryItemComponent::IsDeploying
bool IsDeploying()
Definition
SCR_BaseDeployableInventoryItemComponent.c:65
SCR_DeployableInventoryItemEquipClothAction
Definition
SCR_DeployableInventoryItemEquipClothAction.c:2
SCR_EquipClothAction
modded version for to be used with the inventory 2.0
Definition
SCR_EquipClothAction.c:4
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
scripts
Game
DeployableInventoryItems
Inventory
SCR_DeployableInventoryItemEquipClothAction.c
Generated by
1.17.0