1[
EntityEditorProps(
category:
"GameScripted/Campaign", description:
"Allow respawning at this vehicle in Campaign", color:
"0 0 255 255")]
4 [
Attribute(
"{6D282026AB95FC81}Prefabs/MP/Campaign/CampaignMobileAssemblySpawnpoint.et",
UIWidgets.ResourceNamePicker,
"",
"et")]
27 [
RplProp(onRplName:
"OnSpawnpointCreated")]
30 [
RplProp(onRplName:
"OnDeployChanged")]
44 super.OnPostInit(owner);
52 campaign.GetInstance().GetOnFactionAssignedLocalPlayer().Insert(
OnDeployChanged);
59 super.OnDelete(owner);
68 campaign.GetInstance().GetOnFactionAssignedLocalPlayer().Remove(
OnDeployChanged);
85 const FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(parent.
FindComponent(FactionAffiliationComponent));
98 BaseRadioComponent comp = BaseRadioComponent.Cast(truck.
FindComponent(BaseRadioComponent));
108 return tsv.GetRange();
158 if (!
System.IsConsoleApp())
207 if (damageComponent && damageComponent.GetState() ==
EDamageState.DESTROYED)
217 if (!physicsComponent)
220 vector vel = physicsComponent.GetVelocity();
223 if (vel.LengthSq() <= 0.01)
300 if (!spawnpointResource || !spawnpointResource.IsValid())
304 params.TransformMode = ETransformMode.WORLD;
ArmaReforgerScripted GetGame()
@ DESTROYED
engine is destroyed
SCR_CacheNoteComponentClass ScriptComponentClass RplProp()] protected ref array< string > m_aLines
RplComponent m_RplComponent
SCR_EMobileAssemblyStatus
void OnSpawnpointCreated()
SCR_CampaignMobileAssemblyComponentClass MAX_WATER_DEPTH
SCR_CampaignMobileAssemblyStandaloneComponent m_StandaloneComponent
void ~SCR_CampaignMobileAssemblyComponent()
void UpdateRadioCoverage()
SCR_SpawnPoint m_SpawnPoint
SCR_CampaignMobileAssemblyStandaloneComponent GetStandaloneComponent()
void RegisterSpawnpoint()
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.
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
void SCR_VehicleSoundComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external GenericComponent FindComponent(typename typeName)
proto external Managed FindComponent(typename typeName)
proto external Physics GetPhysics()
proto external void GetTransform(out vector mat[])
proto external IEntity GetParent()
Object holding reference to resource. In destructor release the resource.
Replication item identifier.
SCR_CampaignMobileAssemblyStandaloneComponent GetMobileAssembly()
Created in SCR_GameModeCampaign.
void DelayedEvaluateControlPoints(int delay)
ResourceName GetSpawnpointPrefab()
ResourceName m_sSpawnpointPrefab
static IEntity GetMainParent(IEntity entity, bool self=false)
Spawn point entity defines positions on which players can possibly spawn.
proto external GenericEntity GetOwner()
Get owner entity.
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_CampaignFaction GetAffiliatedFaction()
Returns the affiliated faction or null if none.
SCR_FieldOfViewSettings Attribute