Updating fxSwarm --> Help needed
by Mike Rowley · in Torque Game Engine · 08/11/2007 (9:36 am) · 1 replies
A long time ago, I added fxSwarm to my copy of the engine. Due to a hard drive crash, that was lost. I am now needing to add t in again, but the instructions are for a long ago version of torque and the folder structure is different.
Does anyone know where this code goes now? I've looked, but can't find the correct file.
Does anyone know where this code goes now? I've looked, but can't find the correct file.
- Put this in "/example/common/editor/EditorGui.cs" in [function Creator::init( %this )]
%Environment_Item[<next item-index in list>] = "fxSwarmObject";
- Put the function in "/example/common/editor/ObjectBuilderGui.gui" [around line 458] ...
function ObjectBuilderGui::buildfxSwarmObject(%this)
{
%this.className = "fxSwarmObject";
%this.process();
}
Torque Owner Mike Rowley
Mike Rowley
in "example/creator/editor/EditorGui.cs" (around line 1301) Add:
Make sure to change
Then, find "example/creator/editor/ObjectBuilderGui.gui" around line 571. add:
//Added Swarm Objects function ObjectBuilderGui::buildfxSwarmObject(%this) { %this.className = "fxSwarmObject"; %this.process(); }That should work for 1.4 and up.