fix vheicle add dropwdown spawntypes

This commit is contained in:
AzaezelX 2024-01-17 13:11:43 -06:00
parent 810c070512
commit 86408058a3

View file

@ -135,7 +135,7 @@ function ObjectBuilderGui::reset(%this)
%this.createFunction = ""; %this.createFunction = "";
%this.createCallback = ""; %this.createCallback = "";
%this.currentControl = 0; %this.currentControl = 0;
// //
OBObjectName.setValue(%this.defaultObjectName); OBObjectName.setValue(%this.defaultObjectName);
@ -1480,7 +1480,7 @@ function ObjectBuilderGui::buildAIPlayer(%this)
function ObjectBuilderGui::buildWheeledVehicle(%this) function ObjectBuilderGui::buildWheeledVehicle(%this)
{ {
%this.objectClassName = "Player"; %this.objectClassName = "WheeledVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "WheeledVehicleData"); %this.addField("dataBlock", "TypeDataBlock", "dataBlock", "WheeledVehicleData");
%this.addField("control", "TypeBool", "control?", "false"); %this.addField("control", "TypeBool", "control?", "false");
%this.process(); %this.process();
@ -1488,7 +1488,7 @@ function ObjectBuilderGui::buildWheeledVehicle(%this)
function ObjectBuilderGui::buildHoverVehicle(%this) function ObjectBuilderGui::buildHoverVehicle(%this)
{ {
%this.objectClassName = "Player"; %this.objectClassName = "HoverVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "HoverVehicleData"); %this.addField("dataBlock", "TypeDataBlock", "dataBlock", "HoverVehicleData");
%this.addField("control", "TypeBool", "control?", "false"); %this.addField("control", "TypeBool", "control?", "false");
%this.process(); %this.process();
@ -1496,7 +1496,7 @@ function ObjectBuilderGui::buildHoverVehicle(%this)
function ObjectBuilderGui::buildFlyingVehicle(%this) function ObjectBuilderGui::buildFlyingVehicle(%this)
{ {
%this.objectClassName = "Player"; %this.objectClassName = "FlyingVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "FlyingVehicleData"); %this.addField("dataBlock", "TypeDataBlock", "dataBlock", "FlyingVehicleData");
%this.addField("control", "TypeBool", "control?", "false"); %this.addField("control", "TypeBool", "control?", "false");
%this.process(); %this.process();