瀏覽代碼

add a %this.registerMissionObject( "SpawnSphere", "General Spawn Sphere", "GeneralDropPoint" ); to the level creator folder

AzaezelX 4 年之前
父節點
當前提交
1bad377be1

+ 13 - 0
Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui

@@ -1072,6 +1072,19 @@ function ObjectBuilderGui::buildObserverDropPoint(%this)
    %this.process();
    %this.process();
 }
 }
 
 
+function ObjectBuilderGui::buildGeneralDropPoint(%this)
+{
+   %this.objectClassName = "SpawnSphere";
+   %this.addField("dataBlock",    "TypeDataBlock", "dataBlock",   "MissionMarkerData SpawnSphereMarker");
+   %this.addField("radius",       "TypeFloat",     "Radius",        1);
+   %this.addField("sphereWeight", "TypeFloat",     "Sphere Weight", 1);
+
+   %this.addField("spawnClass",     "TypeString",    "Spawn Class", "");
+   %this.addField("spawnDatablock", "TypeString", "Spawn Data", "");
+   %this.addField("spawnTransform", "TypeBool", "Spawn Here", "true");
+   %this.process();
+}
+
 function ObjectBuilderGui::buildNotesObject(%this)
 function ObjectBuilderGui::buildNotesObject(%this)
 {
 {
    %this.objectClassName = "NotesObject";
    %this.objectClassName = "NotesObject";

+ 1 - 0
Templates/BaseGame/game/tools/worldEditor/scripts/editors/creator.ed.cs

@@ -87,6 +87,7 @@ function EWCreatorWindow::init( %this )
       %this.registerMissionObject( "Portal",       "Zone Portal" );
       %this.registerMissionObject( "Portal",       "Zone Portal" );
       %this.registerMissionObject( "SpawnSphere",  "Player Spawn Sphere", "PlayerDropPoint" );
       %this.registerMissionObject( "SpawnSphere",  "Player Spawn Sphere", "PlayerDropPoint" );
       %this.registerMissionObject( "SpawnSphere",  "Observer Spawn Sphere", "ObserverDropPoint" );
       %this.registerMissionObject( "SpawnSphere",  "Observer Spawn Sphere", "ObserverDropPoint" );
+      %this.registerMissionObject( "SpawnSphere",  "General Spawn Sphere", "GeneralDropPoint" );
       %this.registerMissionObject( "SFXSpace",      "Sound Space" );
       %this.registerMissionObject( "SFXSpace",      "Sound Space" );
       %this.registerMissionObject( "OcclusionVolume", "Occlusion Volume" );
       %this.registerMissionObject( "OcclusionVolume", "Occlusion Volume" );
       %this.registerMissionObject( "AccumulationVolume", "Accumulation Volume" );
       %this.registerMissionObject( "AccumulationVolume", "Accumulation Volume" );