7 [
Attribute(
"0",
UIWidgets.EditBox,
"How often will the vehicle respawn when destroyed. (seconds, 0 = no respawn)",
"0 inf 1")]
10 [
Attribute(
"0",
desc:
"If true, the vehicle will not despawn on spawnpoint if its damage or fuel changed.")]
13 [
Attribute(
"0",
UIWidgets.ComboBox,
"Select Entity Labels which you want to optionally include to random spawn. If you want to spawn everything, you can leave it out empty.",
"", ParamEnumArray.FromEnum(
EEditableEntityLabel))]
19 [
Attribute(
"0",
desc:
"If true, only assets with ALL of provided included labels will be used.")]
22 protected static const int SPAWNING_RADIUS = 5;
23 protected static const int IGNORE_CHANGES_DELAY_MS = 1000;
142 faction =
SCR_Faction.Cast(comp.GetDefaultAffiliatedFaction());
167 params.TransformMode = ETransformMode.WORLD;
186 carController.SetPersistentHandBrake(
true);
190 if (physicsComponent)
191 physicsComponent.SetVelocity(
"0 -1 0");
193 EventHandlerManagerComponent handler = EventHandlerManagerComponent.Cast(
m_Vehicle.FindComponent(EventHandlerManagerComponent));
222 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(vehicle);
226 array<HitZone> hitZones = {};
227 damageManager.GetAllHitZonesInHierarchy(hitZones);
230 foreach (
HitZone hitZone : hitZones)
250 SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(vehicle);
253 array<HitZone> hitZones = {};
254 damageManager.GetAllHitZonesInHierarchy(hitZones);
257 foreach (
HitZone hitZone : hitZones)
279 RplComponent.DeleteRplEntity(
m_Vehicle,
false);
320 SCR_EntityCatalogManagerComponent comp = SCR_EntityCatalogManagerComponent.GetInstance();
331 array<SCR_EntityCatalogEntry>
data = {};
345 if (!factionComponent)
347 Print(
"SCR_AmbientVehicleSpawnPointComponent: SCR_FactionAffiliationComponent not found on owner entity. Vehicle spawning will not be available.",
LogLevel.WARNING);
361 EventHandlerManagerComponent handler = EventHandlerManagerComponent.Cast(
m_Vehicle.FindComponent(EventHandlerManagerComponent));
IEntity SpawnEntityPrefabEx(ResourceName prefab, bool randomizeEditableVariant, BaseWorld world=null, EntitySpawnParams params=null)
ArmaReforgerScripted GetGame()
enum EAICompartmentType m_Vehicle
WorldTimestamp GetDespawnTimestamp()
void SetDespawnTimestamp(WorldTimestamp time)
void SetRespawnTimestamp(WorldTimestamp timestamp)
WorldTimestamp GetRespawnTimestamp()
ref array< EEditableEntityLabel > m_aExcludedEditableEntityLabels
void SetIsDepleted(bool depleted)
void OnDamageChanged(SCR_HitZone hitZone)
bool GetIsFirstSpawnDone()
void RemoveInteractionHandlers(notnull IEntity vehicle)
bool GetIsSpawnProcessed()
bool m_bRequireAllIncludedLabels
WorldTimestamp m_fDespawnTimestamp
void SetAllowDespawn(bool allow)
void AddInteractionHandlers(notnull IEntity vehicle)
void SetSpawnedVehicle(Vehicle vehicle)
ref array< EEditableEntityLabel > m_aIncludedEditableEntityLabels
bool m_bStopDespawnOnInteraction
WorldTimestamp m_fRespawnTimestamp
void OnVehicleDestroyed(IEntity vehicle)
Vehicle GetSpawnedVehicle()
Get all prefabs that have the spawner data
void SCR_FuelManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
void OnFuelChanged(float newFuel)
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external GenericComponent FindComponent(typename typeName)
proto external Managed FindComponent(typename typeName)
proto external BaseWorld GetWorld()
proto external void GetTransform(out vector mat[])
void RegisterSpawnpoint(notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
void UnregisterSpawnpoint(notnull SCR_AmbientVehicleSpawnPointComponent spawnpoint)
static SCR_AmbientVehicleSystem GetInstance()
Get list of entities that all contain all any the included labels and NONE exclude labels Ignores Disabled Entries as well Sometimes it is quicker to get the if false any needs to be true return List size *int GetFullFilteredEntityListWithLabels(notnull out array< SCR_EntityCatalogEntry > filteredEntityList, array< EEditableEntityLabel > includedLabels=null, array< EEditableEntityLabel > excludedLabels=null, bool needsAllIncluded=true)
SCR_EntityCatalog GetFactionEntityCatalogOfType(EEntityCatalogType catalogType, bool printNotFound=true)
ScriptInvoker GetOnDamageStateChanged(bool createNew=true)
proto external GenericEntity GetOwner()
Get owner entity.
enum EPhysicsLayerPresets Vehicle
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.