Author Topic: Opening And Closing JVS [Solved by Ipquarx]  (Read 758 times)

Ok so I'm trying to open and close a JVS door via script.

I did %brick.contentStart(0, 1, ""); and it worked fine, but when I did %brick.schedule(4000, 0, contentStop, 0, ""); it didn't work. I need help figuring out why it didn't work and how to make it work.
« Last Edit: September 06, 2012, 07:18:13 AM by jes00 »

Remove the first 0 in the schedule and replace the second with a 1

Remove the first 0 in the schedule and replace the second with a 1
Didn't work ):

Also, when I did %brick.contentStop(0, 1, ""); it worked.

Why do you have a blank argument
it's just unnecessary

Anyway, change the schedule to have those arguments, in this case %brick.schedule(4000, contentStop, 0, 1);

schedule(TimeToCall, Object, Function, Arg0 .. ArgN) - returns a schedule.
Object.schedule(TimeToCall, Function, Arg0 .. ArgN) - returns a schedule.
cancel(Schedule) - cancels a given schedule.
isEventPending(Schedule) - returns whether a given schedule is going to occur.

There's another one to get the time until a schedule finishes, but I forget what it is.

There's another one to get the time until a schedule finishes, but I forget what it is.
getTimeRemaining(schedule)