mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-07 14:30:40 +00:00
spawnsphere %this tracking
fill out a %this var for sawnobjects prior to running the spawnscript command to give it acess to the spawner instance in addition to the spawned instance
This commit is contained in:
parent
39b9b47caf
commit
e944d117e1
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