mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 09:03:48 +00:00
Merge pull request #977 from Azaezel/alpha41/spawnSphereThisTracking
spawnsphere %this tracking
This commit is contained in:
commit
eeab0c1e06
1 changed files with 2 additions and 1 deletions
|
|
@ -377,8 +377,9 @@ bool SpawnSphere::onAdd()
|
|||
|
||||
SimObject* SpawnSphere::spawnObject(String additionalProps)
|
||||
{
|
||||
String command = String("%this = ") + getIdString() + ";" + mSpawnScript;
|
||||
SimObject* spawnObject = Sim::spawnObject(mSpawnClass, mSpawnDataBlock, mSpawnName,
|
||||
mSpawnProperties + " " + additionalProps, mSpawnScript);
|
||||
mSpawnProperties + " " + additionalProps, command);
|
||||
|
||||
// If we have a spawnObject add it to the MissionCleanup group
|
||||
if (spawnObject)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue