Editing map while in game on event
by Derek Wilkinson · in Torque Game Engine · 11/30/2004 (4:13 pm) · 1 replies
Is it possible for the engine to replace an object with another object, or add one, in the game on an event without reloading the game? Ex. If flipped switch, replace closed gate with open one.
Thanks,
Derek
Thanks,
Derek
Associate Anthony Rosenbaum
%tran = %oldobj.getTransform(); %oldobj.delete(); %newObj = new WHATEVER(){ datablock = Somedatablock; }; %newObj.setTransform(%tran);