Jump to content
Sign in to follow this  
mechastalin

Ending a mission after a certain amount of SOM missions have been completed?

Recommended Posts

Is it possible to have a script or trigger running that once you had completed a certain amount of SOM missions, say 5, it ended the mission?

Share this post


Link to post
Share on other sites
Is it possible to have a script or trigger running that once you had completed a certain amount of SOM missions, say 5, it ended the mission?

Yes :)

The SecOps template (04: Combat) uses this concept. The SOM tracks completed / failed SecOps in an internal variable history (Array: Scalar | completed, Scalar | failed).

So let's say your SOM is myFirstSOM, you can make your trigger check for:

((myFirstSOM getVariable "history") select 0) == 5

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×