Jump to content
Sign in to follow this  
sgtredphoenix

Free for All Script

Recommended Posts

Hi All,

I'm working on a cinematic at the moment but off the back of it I will be making a downloadable mission. Basically all I am looking for is a trigger script which tells all units on the map to engage and destroy all targets. The mission itself will contain 8 survivors, none of which should be friendly and should be treated hostile. I'm also going to add in some other elements like zombies, dogs etc.

The issue I have at the moment is that the survivors will not fire on each other, I'm gathering its because they are from the same faction. I'd just like to add a trigger that when they all enter this one area, all bets are off. treat all AI as hostile and open fire.

I've searched about and tried myself but I suck at Scripting.

Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites

To make sure units from the same faction/side attack each other, you need to give them a negative score. Either in each units init line with:

this addRating ((- rating this) - 100000)

Or in a script/trigger when you want to activate this at a later point:

surv1 addRating ((- rating surv1) - 100000)

Where surv1 is the name you gave assigned to the unit.

Share this post


Link to post
Share on other sites
To make sure units from the same faction/side attack each other, you need to give them a negative score. Either in each units init line with:

this addRating ((- rating this) - 100000)

Or in a script/trigger when you want to activate this at a later point:

surv1 addRating ((- rating surv1) - 100000)

Where surv1 is the name you gave assigned to the unit.

Ah thank you so much :) I'm realizing how complex the arma engine can be

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  

×