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_ToggleDeployableSpawnPointLoadoutAction.c
Go to the documentation of this file.
1
class
SCR_ToggleDeployableSpawnPointLoadoutAction
:
ScriptedUserAction
2
{
3
protected
SCR_RestrictedDeployableSpawnPointComponent
m_DeployableItemComp
;
4
5
//------------------------------------------------------------------------------------------------
6
override
protected
bool
CanBeShownScript
(
IEntity
user)
7
{
8
return
m_DeployableItemComp
.CanToggleLoadoutSpawningBeShown(user);
9
}
10
11
//------------------------------------------------------------------------------------------------
12
override
protected
void
PerformAction
(
IEntity
pOwnerEntity,
IEntity
pUserEntity)
13
{
14
m_DeployableItemComp
.ToggleSpawningWithLoadout(pUserEntity);
15
}
16
17
//------------------------------------------------------------------------------------------------
18
override
void
Init
(
IEntity
pOwnerEntity,
GenericComponent
pManagerComponent)
19
{
20
IEntity
owner =
GetOwner
();
21
if
(!owner)
22
return
;
23
24
m_DeployableItemComp
=
SCR_RestrictedDeployableSpawnPointComponent
.Cast(owner.
FindComponent
(
SCR_RestrictedDeployableSpawnPointComponent
));
25
}
26
}
BaseUserAction::GetOwner
proto external IEntity GetOwner()
Returns the parent entity of this action.
GenericComponent
Definition
GenericComponent.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_RestrictedDeployableSpawnPointComponent
Deployable spawn point with configurable conditions.
Definition
SCR_RestrictedDeployableSpawnPointComponent.c:16
SCR_ToggleDeployableSpawnPointLoadoutAction
Definition
SCR_ToggleDeployableSpawnPointLoadoutAction.c:2
SCR_ToggleDeployableSpawnPointLoadoutAction::CanBeShownScript
bool CanBeShownScript(IEntity user)
Definition
SCR_ToggleDeployableSpawnPointLoadoutAction.c:6
SCR_ToggleDeployableSpawnPointLoadoutAction::Init
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
Definition
SCR_ToggleDeployableSpawnPointLoadoutAction.c:18
SCR_ToggleDeployableSpawnPointLoadoutAction::m_DeployableItemComp
SCR_RestrictedDeployableSpawnPointComponent m_DeployableItemComp
Definition
SCR_ToggleDeployableSpawnPointLoadoutAction.c:3
SCR_ToggleDeployableSpawnPointLoadoutAction::PerformAction
void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
Definition
SCR_ToggleDeployableSpawnPointLoadoutAction.c:12
ScriptedUserAction
Definition
ScriptedUserAction.c:13
scripts
Game
DeployableInventoryItems
SCR_ToggleDeployableSpawnPointLoadoutAction.c
Generated by
1.17.0