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_ShowDeployableSpawnPointInfo.c
Go to the documentation of this file.
1
class
SCR_ShowDeployableSpawnPointInfo
:
ScriptedUserAction
2
{
3
protected
SCR_RestrictedDeployableSpawnPointComponent
m_DeployableSpawnPointComp
;
4
5
protected
RplComponent
m_RplComp
;
6
7
//------------------------------------------------------------------------------------------------
8
override
bool
CanBeShownScript
(
IEntity
user)
9
{
10
if
(!
m_DeployableSpawnPointComp
)
11
return
false
;
12
13
return
m_DeployableSpawnPointComp
.CanInfoBeShown(user);
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
bool
CanBePerformedScript
(
IEntity
user)
18
{
19
return
true
;
20
}
21
22
//------------------------------------------------------------------------------------------------
23
override
void
PerformAction
(
IEntity
pOwnerEntity,
IEntity
pUserEntity)
24
{
25
if
(!
m_DeployableSpawnPointComp
|| !
m_RplComp
||
m_RplComp
.IsProxy())
26
return
;
27
28
m_DeployableSpawnPointComp
.ShowInfo(pUserEntity);
29
}
30
31
//------------------------------------------------------------------------------------------------
32
override
void
Init
(
IEntity
pOwnerEntity,
GenericComponent
pManagerComponent)
33
{
34
IEntity
owner =
GetOwner
();
35
if
(!owner)
36
return
;
37
38
m_DeployableSpawnPointComp
=
SCR_RestrictedDeployableSpawnPointComponent
.Cast(owner.
FindComponent
(
SCR_RestrictedDeployableSpawnPointComponent
));
39
m_RplComp
= RplComponent.Cast(owner.
FindComponent
(RplComponent));
40
}
41
}
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_ShowDeployableSpawnPointInfo
Definition
SCR_ShowDeployableSpawnPointInfo.c:2
SCR_ShowDeployableSpawnPointInfo::PerformAction
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
Definition
SCR_ShowDeployableSpawnPointInfo.c:23
SCR_ShowDeployableSpawnPointInfo::m_DeployableSpawnPointComp
SCR_RestrictedDeployableSpawnPointComponent m_DeployableSpawnPointComp
Definition
SCR_ShowDeployableSpawnPointInfo.c:3
SCR_ShowDeployableSpawnPointInfo::CanBePerformedScript
override bool CanBePerformedScript(IEntity user)
Definition
SCR_ShowDeployableSpawnPointInfo.c:17
SCR_ShowDeployableSpawnPointInfo::m_RplComp
RplComponent m_RplComp
Definition
SCR_ShowDeployableSpawnPointInfo.c:5
SCR_ShowDeployableSpawnPointInfo::CanBeShownScript
override bool CanBeShownScript(IEntity user)
Definition
SCR_ShowDeployableSpawnPointInfo.c:8
SCR_ShowDeployableSpawnPointInfo::Init
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
Definition
SCR_ShowDeployableSpawnPointInfo.c:32
ScriptedUserAction
Definition
ScriptedUserAction.c:13
scripts
Game
DeployableInventoryItems
SCR_ShowDeployableSpawnPointInfo.c
Generated by
1.17.0