Schedule / Unknown Command
by Jeremy Easoz · in Torque Game Builder · 10/13/2008 (9:20 am) · 3 replies
I have a simple block of code that creates a particle effect.
I'm trying to add a line after .playEffect that
calls stop effect after 250ms.
schedule(250, 0, stopEffect, false, true);
schedule(250, %startburst, stopEffect, false, true);
no matter how I combine it, stopEffect is always unknown command.
a straight call to %starburst.stopEffect(false, true) works fine though.
function playStarBurst(%pos)
{
%starburst = new t2dParticleEffect() { scenegraph = pmascenegraph; };
%starburst.loadEffect("~/data/particles/starburst.eff");
%starburst.setPosition(%pos);
%starburst.playEffect(%pos);
}I'm trying to add a line after .playEffect that
calls stop effect after 250ms.
schedule(250, 0, stopEffect, false, true);
schedule(250, %startburst, stopEffect, false, true);
no matter how I combine it, stopEffect is always unknown command.
a straight call to %starburst.stopEffect(false, true) works fine though.
About the author
Associate Anthony Rosenbaum