Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ShowDeployableSpawnPointInfo.c
Go to the documentation of this file.
2{
4
5 protected RplComponent m_RplComp;
6
7 //------------------------------------------------------------------------------------------------
8 override bool CanBeShownScript(IEntity user)
9 {
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 {
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
39 m_RplComp = RplComponent.Cast(owner.FindComponent(RplComponent));
40 }
41}
proto external IEntity GetOwner()
Returns the parent entity of this action.
proto external Managed FindComponent(typename typeName)
Deployable spawn point with configurable conditions.
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
SCR_RestrictedDeployableSpawnPointComponent m_DeployableSpawnPointComp
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)