Jump to content
  • 0

Paradrop if a certain area is not cleared of AI's.


fshow

Question

Hi.

 

Had some problems coming up with a decent title for the thread, hope you got what i meant..

 

I'm making an AI base that will request helibackup unless radio station is cleared before entering a certain area..

 

How do i do this?

I'm thinking i have to count the AI's in a radius of a position, or can i give the AI's a certain ID or something, so the script can check if that ID is alive or not?

 

I'd appreciate any help or feedback on this..

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

make a trigger calling a sqf.

 

In that sqf make an If -> then

 

make it so there should be no AI in the trigger radius or the heli gets called in.

 

You could potentially do another route:

 

Set up a sleep timer the moment the trigger is activated, say 5 minutes. In this time the player should enter the control tower. If this condition is not met, then make it rain parachutes.

Link to comment
Share on other sites

  • 0

The logic im after is this:

 

if (( player is near position x ) AND ( ai_alive near position y > 0 )) then { lets party };

 

Whats the correct version of this if sentence? How do i make it work?

If it matters, im using WAI atm.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...