#End of mission logic

1 messages · Page 1 of 1 (latest)

ember coyote
#

So I'm working on a mission with several targets/objectives, and I want the player return to base to rearm within the mission. I want the mission to end when every enemy building/unit is destroyed and after the player landed at the base. Does anyone have some hints of how to make a logic for that? 🤔 Sometimes building the logic is a pain in the ass... If that, then this, before that happens it must be, after that...🤷🏻‍♂️ 🥴

torn nymph
#

In this case you destroy the 5 targets. Once destroyed, if you land, you win

#

Of course you have to set « targetdestroyed » to each target’s death event

#

And replace « 5 » by the number of targets

ashen iris
#

I set 2 since it was the smallest variable i could do

torn nymph
#

What appens if you just land twice without destroying enemies?

ashen iris
#

But I assumed that landing wouldn’t be possible until the end

#

Actually i just realized i fudged it

#

Since there’s rearm

torn nymph
#

If it works it is ok despite the way to do it

ember coyote
#

Hey there, thank you for your answers. @ashen iris this doesn't work because what @torn nymph said... @torn nymph i have set up events like you mentioned but it doesn't work... I have to many enemies... Does enemy buildings have to be counted too? 🤔

torn nymph
#

Add « targetdestroyed » to each enemy death event