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_DeployInventoryItemRestrictedAction.c
Go to the documentation of this file.
1
class
SCR_DeployInventoryItemRestrictedAction
:
SCR_DeployInventoryItemBaseAction
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
if
(!canBePerformed)
16
return
false
;
17
18
return
super.CanBePerformedScript(user);
19
}
20
}
reason
string reason
Definition
ServerBrowserMenuCallbacks.c:41
BaseUserAction::SetCannotPerformReason
void SetCannotPerformReason(string reason)
Definition
BaseUserAction.c:21
IEntity
Definition
IEntity.c:13
SCR_DeployInventoryItemBaseAction
Definition
SCR_DeployInventoryItemBaseAction.c:2
SCR_DeployInventoryItemBaseAction::m_DeployableItemComp
SCR_BaseDeployableInventoryItemComponent m_DeployableItemComp
Definition
SCR_DeployInventoryItemBaseAction.c:3
SCR_DeployInventoryItemRestrictedAction
Definition
SCR_DeployInventoryItemRestrictedAction.c:2
SCR_RestrictedDeployableSpawnPointComponent
Deployable spawn point with configurable conditions.
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:16
SCR_RestrictedDeployableSpawnPointComponent::CanDeployBePerformed
bool CanDeployBePerformed(out string reason)
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:609
scripts
Game
DeployableInventoryItems
SCR_DeployInventoryItemRestrictedAction.c
Generated by
1.17.0