I'm in the middle of trying to create an invasion gametype but I ran into two problems with scripting.
I would like for a stronghold point to spawn then despawn 2 seconds later, but for some reason the stronghold won't spawn in the first place. The way I set it up is with a controller (2x2x2 detailed block) which contains these scripts:
SWITCH:
Script 1: On Interaction - Power: Set - Bravo --> On
2x2x2 BLOCK:
Respawn: On - On Death/Deletion --> 2 seconds.
Script 1: On Power: State - Bravo - On --> Despawn
Script 2: On Spawn - Message: Send --> Bravo
STRONGHOLD TERMINAL:
Script 1: On Round: Start - Despawn
Script 2: On Power: State - Bravo - On --> Spawn
Script 3: On Message: Recieved - Bravo --> Despawn
To re-iterate, the Issue here is that the stronghold starts despawned, but it won't respawn. Is it not allowed to spawn due to the game engine?
On top of that, I also want a door to move over the course of 15 seconds, but I want it to reset if you re-activate a switch. Here is the setup for this:
SWITCH:
Script 1: On Interaction - Power:Set - Alpha --> Toggle
32x32x2 BLOCK:
Script 1: On Power: State - Alpha - On --> Move: Offset (numbers here).
Script 2: On Power: State - Alpha - Off --> Position/Rotation: Reset (Velocity: Reset - On).
The problem with this is that if i re-activate the script before the Move: Offset finishes, it resets back to normal position but still continues to finish the Move: Offset until IT finishes too. Is there a way to purge all movement so that the reset can do it's work?
If i need to clarify, ask me and I'll try. Thanks Forgehub :)