2012-01-14, 06:06 PM
If you simply want it to move -1 on the z axis then the way youll want to do it is this.
First event -
on inspection:
if counter(doormove) = 0
move object +1 on z axis
change counter(doormove) to = 1
activate timerA
move forward one leaf
second event
always on:
measure counter(doorreturn) with timerA
third event
always on:
when counter(doorreturn) = 60
move object -1 on the zaxis
change counter(door) to = 0 (this way you can reopen the door now)
move forward one leaf
this way when you activate the door, you have 60 seconds before it moves back in place and it should repeat if you inspect the door object again after it returns.
First event -
on inspection:
if counter(doormove) = 0
move object +1 on z axis
change counter(doormove) to = 1
activate timerA
move forward one leaf
second event
always on:
measure counter(doorreturn) with timerA
third event
always on:
when counter(doorreturn) = 60
move object -1 on the zaxis
change counter(door) to = 0 (this way you can reopen the door now)
move forward one leaf
this way when you activate the door, you have 60 seconds before it moves back in place and it should repeat if you inspect the door object again after it returns.
- Todd DuFore (DMPDesign)
Site Founder
Site Founder