31
Mega Tokyo SCI Archive / Re:Automatic doors
« on: June 27, 2004, 04:33:19 PM »
for this one i wouldnt use the door class at all. i would just set up a variable (local open = 0) and a view of a door with (for example) ctlGREY as the control color in front and ctlMAROON as the color behind and then do this:
(if(== (send gEgo:onControl()) ctlGREY)
(if(not(open))
(aDoor:setCycle(End)cel(0)loop(0))//draw it to slide or open
= open 1
)(else
)
)
and then to close it, you could draw another control (for example) ctlSILVER around the ctlGREY and put in:
(if(== (send gEgo:onControl()) ctlSILVER)
(if(open)
(aDoor:setCycle(End)cel(0)loop(1))//this loop would need to be the opposite of the other.
= open 0
)(else
)
)
i think that would work...
doan
(if(== (send gEgo:onControl()) ctlGREY)
(if(not(open))
(aDoor:setCycle(End)cel(0)loop(0))//draw it to slide or open
= open 1
)(else
)
)
and then to close it, you could draw another control (for example) ctlSILVER around the ctlGREY and put in:
(if(== (send gEgo:onControl()) ctlSILVER)
(if(open)
(aDoor:setCycle(End)cel(0)loop(1))//this loop would need to be the opposite of the other.
= open 0
)(else
)
)
i think that would work...
doan