14 [
Attribute(
"{35347E7AA6BDF8CE}Prefabs/MP/Spawning/ItemSpecifics/RestrictedDeployableSpawnPoint_Radio.et", uiwidget: UIWidgets.ResourcePickerThumbnail,
params:
"et",
category:
"Setup")]
28 if (!s_OnSpawnPointDismantled)
31 return s_OnSpawnPointDismantled;
46 if (!signalsManagerComp)
49 int radioChatter = signalsManagerComp.FindSignal(
"DeployableRadioChatter");
52 signalsManagerComp.SetSignalValue(radioChatter, 1);
54 signalsManagerComp.SetSignalValue(radioChatter, 0);
61 if (!resource.IsValid())
65 params.Transform = m_aOriginalTransform;
66 params.TransformMode = ETransformMode.WORLD;
81 super.Deploy(userEntity, reload);
108 super.Dismantle(userEntity, reload);
112 RplComponent rplComp = RplComponent.Cast(
m_SpawnPoint.FindComponent(RplComponent));
121 int userID =
GetGame().GetPlayerManager().GetPlayerIdFromControlledEntity(userEntity);
122 if (s_OnSpawnPointDismantled)
123 s_OnSpawnPointDismantled.Invoke(userID);
142 m_bWasDeployed =
false;
151 m_PreviousOwner =
GetGame().GetPlayerManager().GetPlayerControlledEntity(m_iItemOwnerID);
152 m_bWasDeployed =
true;
159 static array<SCR_BaseDeployableSpawnPointComponent> GetActiveDeployedSpawnPoints()
174 void Update(
float timeSlice);
201 super.EOnInit(owner);
203 BaseGameMode gameMode =
GetGame().GetGameMode();
208 if (!playerSpawnPointManager)
221 super.OnDelete(owner);
227 if (s_OnSpawnPointDismantled)
228 s_OnSpawnPointDismantled.Invoke(-1);
236 RplComponent rplComp = RplComponent.Cast(
m_SpawnPoint.FindComponent(RplComponent));
247 BaseGameMode gameMode =
GetGame().GetGameMode();
251 if (playerSpawnPointManager)
ArmaReforgerScripted GetGame()
SCR_DeployableSpawnPoint CreateSpawnPoint()
void ToggleRadioChatter(bool enable)
void ~SCR_BaseDeployableSpawnPointComponent()
override void OnRplDeployed()
SCR_BaseDeployableSpawnPointComponentClass s_aActiveDeployedSpawnPoints
Base class which all deployable spawn points / radios inherit from.
void ConnectToDeployableSpawnPointSystem()
void OnSpawnPointDeployingEnabledChanged(bool enabled)
override void Dismantle(IEntity userEntity=null, bool reload=false)
bool m_bDeployableSpawnPointsEnabled
void DisconnectFromDeployableSpawnPointSystem()
ResourceName m_sSpawnPointPrefab
RplComponent m_RplComponent
SCR_SpawnPoint m_SpawnPoint
SCR_SpawnPoint GetSpawnPoint()
bool Deploy(SCR_EMobileAssemblyStatus status, int playerId=0, bool silent=false)
SCR_CharacterSoundComponentClass GetComponentData()
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Get all prefabs that have the spawner data
ScriptInvokerBase< ScriptInvokerIntMethod > ScriptInvokerInt
proto external BaseWorld GetWorld()
Object holding reference to resource. In destructor release the resource.
Base class which all deployable inventory items inherit from.
void Register(SCR_BaseDeployableSpawnPointComponent component)
void Unregister(SCR_BaseDeployableSpawnPointComponent component)
ScriptInvokerBool GetOnSpawnPointDeployingEnabledChanged()
bool IsDeployingSpawnPointsEnabled()
Spawn point entity defines positions on which players can possibly spawn.
IEntity GetOwner()
Owner entity of the fuel tank.
override void EOnInit(IEntity owner)
SCR_FieldOfViewSettings Attribute