Author Topic: Schedule vehicle power not working  (Read 477 times)

Trying to enable vehicle power after 5 seconds, so I tried this:

%vehicleSpawnBrick.schedule(5000,0,setVehiclePowered,1);

any ideas why it doesn't work?

Proper use for objects:
object.schedule(timeMS, function, args[]);

The second argument is the refObject, to expand on what Kyuande said.

schedule(%time, %object, %function, %arg1, %arg2, ... , %argN);  =  %object.schedule(%time, %function, %arg1, %arg2, ... , %argN);

Torque is just dumb and adds a parameter for object even though there's an object method of schedule.