| 08-04-2002, 05:46 AM | #1 |
Guest | i know how to make gates open and close, but is there a way to make it that if a unit enters a region and the gate is opened/closed it will do the opposite of the one that it is currently? example, there is a gate in the middle of 2 regions, openinside and openoutside, when a hero enters openoutside and the gate is closed, the gate opens. When the hero enter the opposite area, openinside, the gate closes. i hope u understand above, if u dont keep thinking about it and see if u can help me(i think it is sorta confusing...or that is is 12:30 am right now and i am sleepy) please help if u can, thanks someone190 loser50 (B.net) |
| 08-04-2002, 07:09 AM | #2 |
Guest | just use one region and use the "if unit enters region (open gate) if unit leaves region (close gate)" its easier that way unless there's some really specific reason you can't use just one region. |
| 08-04-2002, 03:46 PM | #3 |
Guest | yeah..... never thought of that..... thanks |
| 08-05-2002, 01:10 AM | #4 |
Though....Now that I think of it, if Doodads can have - health you can do this easily enough. When a gate is open its health is set to 0, its set back to max when the gate gets closed. So what you might be able to do is set the health of the doodad to -1 * whatever it was before on enter of two regions...Assuming that the life of a doodad can be - this should allow you to toggle the state of the gate without much work... |
