Jump to content
Sign in to follow this  
adamdf

AI call for support if they are losing

Recommended Posts

Basically im settin up a mission where 3 groups of BLUFOR are to clear an area (the player is in one of the groups) and 2 more groups of BLUFOR have to clear another area, 1st area is Obj1 and 2nd is obj2, the mission will end when both areas are clear.

I basically want to set it up so that the groups in area 2 will call for support from the groups in area 1 if they are taking a pounding. And if they call for support all the groups in area 1 will move to there location to assist.

How would i go about doing this?

Thanks in advance for any help.

Share this post


Link to post
Share on other sites

You will need some way to figure out whether they are losing or not.

You could take the unit srength.

So you make a if statement that as soon as they have lost X people ( x = your choice ) it executes a script and that script will then call in backup. You could also put in some extras like a pos 2 grid script to get their grid location and then some text message like

" This is unitname we need backup at position _grid (pos from script) asap"

or something like that.

Share this post


Link to post
Share on other sites

You could create a trigger so that for example.. if all units are gone from area 1 then other units will be called in. Sync the trigger to a waypoint that will have the units move there

Share this post


Link to post
Share on other sites

Cheers for the help guys.

I have another question, is it possible to spawn a unit or units via a trigger without any scripting?

For example, trigger set for radio alpha, when activated an A10 spawns and moves to a waypoint

Share this post


Link to post
Share on other sites

Yes it is possible.

You can actually attach a trigger to a waypoint. So what you can do is that you place some waypoint for an a10 outside the map and make it wait there. Then you make another waypoint to your place where the support is needed attach the trigger on it and as soon as it executes it sets the waypoint to the a10.

I am not 100% sure if it was working like that but I know its working just google for arma waypoints trigger or something like that.

Share this post


Link to post
Share on other sites

Yeah i know you can have the plane wait, but i want it to spawn (appear) when i activate a trigger

Share this post


Link to post
Share on other sites
Basically im settin up a mission where 3 groups of BLUFOR are to clear an area (the player is in one of the groups) and 2 more groups of BLUFOR have to clear another area, 1st area is Obj1 and 2nd is obj2, the mission will end when both areas are clear.

I basically want to set it up so that the groups in area 2 will call for support from the groups in area 1 if they are taking a pounding. And if they call for support all the groups in area 1 will move to there location to assist.

How would i go about doing this?

Thanks in advance for any help.

Try using a Trigger with the seized by option.

http://community.bistudio.com/wiki/trigger.

Below is how I generally use them, but the same principal can be applied to your problem. The hardest part is playing with the timeout values so that the trigger fires before your side is completely hammered.

I use these all the time to trigger when an area is dominated by the player team generally. It is great because you never have to go searching for that last survivor. Also the team still have to be careful because even though they have "secured" the area, it doesn't mean there is one enemy lurking or hiding still.

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  

×