Beebop Posted December 29, 2020 Posted December 29, 2020 I have a basic question about Complex Triggers. Mission Type: Deathmatch In both manuals it states that a Complex Trigger will fire every time a specified object enters it. It suggests that deactivation logic be applied so that it only fires the first time said object enters. My problem is that even without the deactivation logic my CT's only fire the first time the specified object enters the radius and does not fire again with subsequent entries. I want it to fire every time the specified object enters. Here is my logic and Complex Trigger Advanced settings: * Enemy plane is not enabled and 'in air'. * Once activation is triggered by the Event Message the plane begins to fly. * Waypoint enables 3 seconds later after receiving the Event Message. This works flawlessly but only fires one time. What needs to change to get it to fire every time a plane enters the trigger radius? TIA
coconut Posted December 29, 2020 Posted December 29, 2020 How do you know the complex trigger fires once? The picture you have attached shows a red plane being activated twice, which will behave the same as the plane being activated once.
No_85_Gramps Posted December 29, 2020 Posted December 29, 2020 I'm by far no expert when it comes to the ME, but if plane A sets off the CT and plane B gets activated, and assuming both planes are still flying, what happens when plane C sets off the CT? It tries to activate plane B, which is already activated. Wouldn't you need a spawn trigger so each time the CT is triggered a new plane spawns in?
JG4_Deciman Posted December 29, 2020 Posted December 29, 2020 Simply targetLink the 'OnPlaneEntered' to a subtitle. And the you will see, that every us-plane entering (no matter if alive or not) will fire the action Deci
Sketch Posted December 29, 2020 Posted December 29, 2020 (edited) As others have mentioned here, the problem is not with your CTX, but instead with your activation. The first pulse to the plane that needs activation; activates the plane. The second pulse to the same plane that needs activation; doesn't activate the plane... Why? Because the plane is already activated. If you want a new plane each time the CTX fires, you'll need a Spawner MCU instead. The Spawner will spawn a new instance of the plane each time the CTX fires. Use an 'onSpawnedReport' event from the plane to the Spawner to the Waypoint MCU (my blueish line). This means that each time the plane is spawned in, it will move the waypoint. https://i.imgur.com/iD63TBY.mp4 <-- Here's a gif showing the spawner working Testing Spawning.zip <-- Here's an example mission, but mine is doing it through 'onFlareFired' instead of 'onEnteredAlive' event. I should add... There's a better way to do what you want, (assuming this is for multiplayer) and that's through the airfield respawner's 'onPlaneSpawned' event. When a player spawns in, it spawns in an enemy plane. This works the same way as your CTX, but without the CTX. However, doing it this way means you'll get a bunch of enemy planes very quickly. So, I'd add a slight delay for each spawned in plane (and I'd add a slight delay to your CTX logic too). Like so: With the delay, no matter how many players spawn in rapidly; only one enemy plane will spawn every three minutes. Edited December 29, 2020 by Sketch
Beebop Posted December 29, 2020 Author Posted December 29, 2020 8 hours ago, coconut said: How do you know the complex trigger fires once? Because only one plane spawns when a plane enters the CT. 8 hours ago, coconut said: The picture you have attached shows a red plane being activated twice, which will behave the same as the plane being activated once. ❓ I don't understand. The CT sends two Event Messages, one to activate the plane, one to enable the waypoint 3 seconds later. only one plane appears in game. 6 hours ago, No_85_Gramps said: Wouldn't you need a spawn trigger so each time the CT is triggered a new plane spawns in? Now we're getting somewhere. @Sketch, now that seems to be an answer. I will test your Test Spawning mission and look at it in the ME. Admittedly a lot of what I ask for is unconventional but that is my mindset. Thanks yet again for everyone's help and especially to Sketch for going to the trouble to make an example I can study and learn from. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now