18 if (m_bRandomizePerFaction)
20 ResourceName randomAsset;
25 m_sObjectToSpawn = randomAsset;
34 m_sObjectToSpawn =
m_Waypoint.GetWaypointPrefab();
36 Resource resource = Resource.Load(m_sObjectToSpawn);
37 if (!resource || !resource.IsValid())
43 vector angles = Math3D.MatrixToAngles(
m_SpawnParams.Transform);
47 BaseResourceObject resourceObject = resource.GetResource();
51 if (m_bIgnoreOrientChildrenToTerrain)
54 if (slotCompositionComponent)
63 aiWorld.RequestNavmeshRebuildEntity(entity);
85 Shape dbgShapeCenter =
null;
86 Shape dbgShapeOuter =
null;
90 radius =
m_Waypoint.GetWaypointCompletionRadius();
93 dbgShapeCenter = Shape.CreateCylinder(
95 ShapeFlags.TRANSP | ShapeFlags.DOUBLESIDE | ShapeFlags.NOZWRITE | ShapeFlags.ONCE | ShapeFlags.NOOUTLINE,
101 dbgShapeOuter = Shape.CreateCylinder(
103 ShapeFlags.TRANSP | ShapeFlags.DOUBLESIDE | ShapeFlags.NOZWRITE | ShapeFlags.ONCE | ShapeFlags.NOOUTLINE,
112 override bool _WB_OnKeyChanged(IEntity owner, BaseContainer src,
string key, BaseContainerList ownerContainers, IEntity parent)
114 if (key ==
"m_bShowDebugShapesInWorkbench")
121 Resource resource = Resource.Load(m_sObjectToSpawn);
125 SpawnEntityPreview(owner, resource);
128 else if (key ==
"m_sObjectToSpawn")