Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PlayerRadioSpawnPointCampaign.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/GameMode", description: "")]
3 {
4 }
5 
6 class SCR_PlayerRadioSpawnPointCampaign : SCR_PlayerRadioSpawnPoint
7 {
8  //------------------------------------------------------------------------------------------------
9  override void OnItemAdded(IEntity item,BaseInventoryStorageComponent storageOwner)
10  {
11  if (!storageOwner)
12  return;
13 
14  if (SCR_CharacterRankComponent.GetCharacterRank(storageOwner.GetOwner()) == SCR_ECharacterRank.RENEGADE)
15  return;
16 
17  super.OnItemAdded(item, storageOwner);
18  }
19 
20  //------------------------------------------------------------------------------------------------
23  {
24  return m_CachedFaction;
25  }
26 
27  //------------------------------------------------------------------------------------------------
30  {
31  super.ActivateSpawnPoint();
32  }
33 
34  //------------------------------------------------------------------------------------------------
37  {
38  super.DeactivateSpawnPoint();
39  }
40 }
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_ECharacterRank
SCR_ECharacterRank
Definition: SCR_CharacterRankComponent.c:305
GetCachedFaction
Faction GetCachedFaction()
Definition: SCR_PlayerRadioSpawnPointCampaign.c:22
SCR_CharacterRankComponent
void SCR_CharacterRankComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_CharacterRankComponent.c:209
OnItemAdded
SCR_PlayerRadioSpawnPointCampaignClass SCR_PlayerRadioSpawnPointClass OnItemAdded(IEntity item, BaseInventoryStorageComponent storageOwner)
Definition: SCR_PlayerRadioSpawnPointCampaign.c:9
Faction
Definition: Faction.c:12
SCR_PlayerRadioSpawnPointCampaignClass
Definition: SCR_PlayerRadioSpawnPointCampaign.c:2
SCR_PlayerRadioSpawnPointClass
Definition: SCR_PlayerRadioSpawnPoint.c:2
DeactivateSpawnPointPublic
void DeactivateSpawnPointPublic()
Definition: SCR_PlayerRadioSpawnPointCampaign.c:36
ActivateSpawnPointPublic
void ActivateSpawnPointPublic()
Definition: SCR_PlayerRadioSpawnPointCampaign.c:29
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180