5 ref array<ref SCR_EditorLinkEntry> m_aEntries;
46 static void IgnoreSpawning(
bool ignore)
58 SCR_EditorLinkComponent linkComponent = SCR_EditorLinkComponent.Cast(entity.GetOwner().FindComponent(SCR_EditorLinkComponent));
59 return linkComponent && linkComponent.IsSpawned();
86 if ((Replication.IsClient() && !Replication.Loadtime()) ||
SCR_Global.IsEditMode(owner))
93 SetEventMask(owner, EntityEvent.INIT);
98 if ((Replication.IsClient() && !Replication.Loadtime()) ||
SCR_Global.IsEditMode(
GetOwner()))
106 BaseWorld world =
GetOwner().GetWorld();
108 EntitySpawnParams spawnParams =
new EntitySpawnParams();
109 spawnParams.TransformMode = ETransformMode.LOCAL;
114 entry.SetSpawnParams(spawnParams);
115 if (!game.SpawnEntityPrefab(Resource.Load(entry.m_Prefab), world, spawnParams))
116 Print(
string.Format(
"Unable to spawn linked entity @\"%1\"!", entry.m_Prefab.GetPath()), LogLevel.WARNING);
130 ResourceName m_Prefab;
141 void SetSpawnParams(out EntitySpawnParams spawnParams)
143 Math3D.AnglesToMatrix(Vector(m_vAngles[1], m_vAngles[0], m_vAngles[2]), spawnParams.Transform);
150 if (!prefab.IsEmpty())