mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 12:14:45 +00:00
Merge pull request #1176 from Azaezel/alpha41/spawnStuffs
ObjectBuilderGui augs
This commit is contained in:
commit
33b7cc7803
|
|
@ -969,6 +969,10 @@ function ObjectBuilderGui::processNewObject(%this, %obj)
|
|||
if ( !isObject( %obj ) )
|
||||
return;
|
||||
|
||||
%controlMask = $TypeMasks::PlayerObjectType | $TypeMasks::VehicleObjectType;
|
||||
if (%obj.control)
|
||||
localClientConnection.setControlobject(%obj);
|
||||
|
||||
// Add the object to the group.
|
||||
if( %this.objectGroup !$= "" )
|
||||
%this.objectGroup.add( %obj );
|
||||
|
|
@ -1459,6 +1463,45 @@ function ObjectBuilderGui::buildPlayerDropPoint(%this)
|
|||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildPlayer(%this)
|
||||
{
|
||||
%this.objectClassName = "Player";
|
||||
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "PlayerData");
|
||||
%this.addField("control", "TypeBool", "control?", "false");
|
||||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildAIPlayer(%this)
|
||||
{
|
||||
%this.objectClassName = "AIPlayer";
|
||||
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "PlayerData");
|
||||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildWheeledVehicle(%this)
|
||||
{
|
||||
%this.objectClassName = "Player";
|
||||
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "WheeledVehicleData");
|
||||
%this.addField("control", "TypeBool", "control?", "false");
|
||||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildHoverVehicle(%this)
|
||||
{
|
||||
%this.objectClassName = "Player";
|
||||
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "HoverVehicleData");
|
||||
%this.addField("control", "TypeBool", "control?", "false");
|
||||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildFlyingVehicle(%this)
|
||||
{
|
||||
%this.objectClassName = "Player";
|
||||
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "FlyingVehicleData");
|
||||
%this.addField("control", "TypeBool", "control?", "false");
|
||||
%this.process();
|
||||
}
|
||||
|
||||
function ObjectBuilderGui::buildObserverDropPoint(%this)
|
||||
{
|
||||
%this.objectClassName = "SpawnSphere";
|
||||
|
|
|
|||
Loading…
Reference in a new issue