20 if (m_bRandomizePerFaction)
27 m_sObjectToSpawn = randomAsset;
36 m_sObjectToSpawn =
m_Waypoint.GetWaypointPrefab();
38 Resource resource = Resource.Load(m_sObjectToSpawn);
39 if (!resource || !resource.IsValid())
49 BaseResourceObject resourceObject = resource.GetResource();
53 if (m_bIgnoreOrientChildrenToTerrain)
55 IEntityComponentSource slotCompositionComponent = SCR_BaseContainerTools.FindComponentSource(resourceObject, SCR_SlotCompositionComponent);
56 if (slotCompositionComponent)
58 SCR_SlotCompositionComponent.IgnoreOrientChildrenToTerrain();
63 SCR_AIWorld aiWorld = SCR_AIWorld.Cast(
GetGame().GetAIWorld());
89 Shape dbgShapeCenter = null;
90 Shape dbgShapeOuter = null;
94 radius =
m_Waypoint.GetWaypointCompletionRadius();
97 dbgShapeCenter =
Shape.CreateCylinder(
105 dbgShapeOuter =
Shape.CreateCylinder(
122 if (key ==
"m_bShowDebugShapesInWorkbench")
129 Resource resource = Resource.Load(m_sObjectToSpawn);
133 SpawnEntityPreview(owner, resource);
136 else if (key ==
"m_sObjectToSpawn")
ArmaReforgerScripted GetGame()
ref array< string > angles
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
override bool _WB_OnKeyChanged(IEntity owner, BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent)
Any property value has been changed. You can use editor API here and do some additional edit actions ...
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
bool m_bShowDebugShapesInWorkbench
ref array< IEntity > m_aSpawnedEntities
void DrawDebugShape(bool draw)
float m_fDebugShapeRadius
SCR_ScenarioFrameworkLayerTaskDestroyClass m_SpawnParams
ResourceName GetRandomlySpawnedObject()
void SCR_ScenarioFrameworkSlotBase(IEntityComponentSource src, IEntity ent, IEntity parent)
ResourceName GetRandomAsset(out ResourceName prefab)
void SCR_ScenarioFrameworkSlotWaypoint(IEntityComponentSource src, IEntity ent, IEntity parent)
enum EVehicleType IEntity
proto external void SetOrigin(vector orig)
proto external void GetWorldTransform(out vector mat[])
See IEntity::GetTransform.
void RequestNavmeshRebuildEntity(IEntity entity)
static bool IsEmptyOrWhiteSpace(string input)
Instance of created debug visualizer.
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_FieldOfViewSettings Attribute
proto int ARGB(int a, int r, int g, int b)