[Feature Request] Platform Interruption
[Feature Request] Platform Interruption
I dont know how difficult (or possible) it is to implemet this. But I think it would be really great if there were some way to interrupt a raising or lowering sector before it finishes its movement. I realize there are methods you could use to try and simulate this. But depending on the situation, they may fail.
Code: Select all
script 100 (int tag, int inc, int wait, int count) {
// tag is tag of sector to move, inc is amount of units to move each
// iteration, wait is how long to wait between iterations.
// count is the number of iterations (floor will move count * inc units if
// the script is not interrupted)
int i;
for (i = 0; i < count; i++) {
FloorRaise(tag, inc, inc*1000);
delay(wait);
}
}
script 101 (void) {
ACS_terminate(100);
}
Re: [Feature Request] Platform Interruption
Ahem...
I tried something very similar to what you suggested (using both a for loop and a simple restart with a var decrementation). It was in a stuation where the player could use something in order to activate the appropriate scripts. But if they mashed the use key fast enough the platform would raise and lower inappropriately.Assmaster wrote: I realize there are methods you could use to try and simulate this. But depending on the situation, they may fail.
- Lexus Alyus
- Posts: 4220
- Joined: Tue Jul 15, 2003 5:07 pm
- Location: Nottingham, UK
- Contact: