I am relatively new to this, so please bear with me. I did some readings on gate triggers already, but I still couldn't figure out what mistakes I made on my triggers.
Goal:
To make a gate that:
1. opens when player 1-5 approach it, and closes shortly afterwards.
2. stay shut when player 6-10 approach it.
There are several ways for player 6-10 to get past the gate:
1. Destroy the gate.
2. Destroy a lever placed behind the gate and the gate will open.
3. Rush in as player 1-5 are passing through the gate.
If the gate and/or the lever are destroyed, they will ressurect 60 seconds later.
Problem that I have:
1. If the gate is destroyed, it will stay dead for 60 seconds. No problem. But it resets if player 1-5 approach it, and thats no good.
2. If the lever is destroyed, gate will stay open, but it resets when player 1-5 approach it. Same problem.
I know that the problem comes from my trigger event, "When a unit enters a region", but I don't know what else to change it to. OR how should I script the condition to avoid the gate reseting after it died and before the 60 second is up. Here's what I have tried so far. I am still rather new, so I might have make some retarded mistake somewhere.
Please refer to the trigger HERE. The old one was removed since there's too many stupid mistakes
I would be really grateful if someone can point out what mistake I made or perhaps suggest an alternative method. Thanks.
Goal:
To make a gate that:
1. opens when player 1-5 approach it, and closes shortly afterwards.
2. stay shut when player 6-10 approach it.
There are several ways for player 6-10 to get past the gate:
1. Destroy the gate.
2. Destroy a lever placed behind the gate and the gate will open.
3. Rush in as player 1-5 are passing through the gate.
If the gate and/or the lever are destroyed, they will ressurect 60 seconds later.
Problem that I have:
1. If the gate is destroyed, it will stay dead for 60 seconds. No problem. But it resets if player 1-5 approach it, and thats no good.
2. If the lever is destroyed, gate will stay open, but it resets when player 1-5 approach it. Same problem.
I know that the problem comes from my trigger event, "When a unit enters a region", but I don't know what else to change it to. OR how should I script the condition to avoid the gate reseting after it died and before the 60 second is up. Here's what I have tried so far. I am still rather new, so I might have make some retarded mistake somewhere.
Please refer to the trigger HERE. The old one was removed since there's too many stupid mistakes
I would be really grateful if someone can point out what mistake I made or perhaps suggest an alternative method. Thanks.
Last edited: