Home   Help Search Login Register  

Author Topic: when 4 shilkas dead you can call airsupport  (Read 973 times)

0 Members and 1 Guest are viewing this topic.

Commando

  • Guest
when 4 shilkas dead you can call airsupport
« on: 09 Feb 2003, 20:21:11 »
When you have taken out the 4 shilkas you can call in airsupport with radio alpha? How do you do that.. ???

seanver

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #1 on: 09 Feb 2003, 20:26:46 »
I assume you already know how to call an air support. If you don't, afraid someone else will have to answer you -haven't touched OFP for a long time and now I'm a little lost, so I only can remember some very basic things-. Ok, you must name them. For example, shilka1, shilka2, etc.

Now, create a trigger. Put in its condition:

!(alive shilka1) AND !(alive shilka2) AND !(alive shilka3) AND !(alive shilka4)

on activation:

1 setradiomsg "Call air support"

Now go to your mission's folder, create a file called init.sqs, and put in it:

1 setradiomsg "NULL"

 You must have created before trying it a trigger that is activated by Radio Alpha with a condition that must be that which will make your air support work.

Commando

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #2 on: 09 Feb 2003, 20:28:29 »
thx dude I'll try that and thanks for the fast reply :D

Commando

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #3 on: 09 Feb 2003, 21:34:15 »
well I made a trigger that says activated by radio alpha and then i put
!(alive shilka1) AND !(alive shilka2) AND !(alive shilka3) AND !(alive shilka4)
in the condition field and then i put
1 setradiomsg "Call air support" in the activation field.

I can't choose radio alpha when I have destroyed the shilkas. what is wrong? I haven't made the airsupport group yet..is it that or something else?

seanver

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #4 on: 09 Feb 2003, 22:10:06 »
Did you create a triger whose activation is "Radio Alpha"?

Commando

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #5 on: 09 Feb 2003, 22:11:35 »
I wrote everything in the same trigger.
Or was radio alpha trigger be a another trigger and the
!(alive shilka1) AND !(alive shilka2) AND !(alive shilka3) AND !(alive shilka4)
be in a another trigger? ???

seanver

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #6 on: 09 Feb 2003, 22:12:43 »
Hmm, I've always done it with two triggers, one for the radio thing and other for the condition.

Commando

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #7 on: 09 Feb 2003, 22:15:06 »
okay i put everything in the same trigger, lol on me :P
the trigger where radio alpha is in is there going to be any code in it?
Or is all the codes going to be in the other trigger?

seanver

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #8 on: 09 Feb 2003, 22:18:13 »
In the alpha one you will have to put in its on Activation field the condition which will trigger the air support. For exmaple, if you create a waypoint for an aircraft where it is supposed to wait by putting a condition in its condition field -for example put Condition: come-, you'll have to put in the trigger's on activation field come=true, so when the radio is used, it sets the condition as true. To avoid being able to select the radio from the beginning, make the init.sqs thing I suggested in my first answer.

Commando

  • Guest
Re:when 4 shilkas dead you can call airsupport
« Reply #9 on: 09 Feb 2003, 22:21:17 »
thx I'll try that but now i have to go to sleep.
I'll post soemthing tomorw.