Jump to content
SGT Major Ray Jefferson

creation of trigger condition destroy or incapacited tank

Recommended Posts

 

Hello, I am asking for help from the community: In my mission, I am trying to create several triggers with the following conditions:

- 1: only activates if one of the four tanks is considered destroyed or damaged at 80%.

- 2: If two of the tanks are considered destroyed or damaged at 80%.

- 3: same conditions but for three tanks.

- 4: for four tanks.

Thanks

Share this post


Link to post
Share on other sites
2 hours ago, SGT Major Ray Jefferson said:

- 1: only activates if one of the four tanks is considered destroyed or damaged at 80%.

([tank1, tank2, tank3, tank4] findIf { (damage _x) >= 0.8 }) >= 0

 

2 hours ago, SGT Major Ray Jefferson said:

 - 2: If two of the tanks are considered destroyed or damaged at 80%.

({ (damage _x) >= 0.8 } count [tank1, tank2, tank3, tank4]) == 2

 

2 hours ago, SGT Major Ray Jefferson said:

 - 3: same conditions but for three tanks.

({ (damage _x) >= 0.8 } count [tank1, tank2, tank3, tank4]) == 3

 

2 hours ago, SGT Major Ray Jefferson said:

 - 4: for four tanks.

([tank1, tank2, tank3, tank4] findIf { (damage _x) < 0.8 }) < 0

 

  • Like 2

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

×