Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
santiagojamesaea

Sergeant
Registered:
Posts: 106
Reply with quote  #1 
I am trying to find a script to spawn a flare when a player enters a trigger area.I have seen on the arma2 site how to get the AI to fire flares but i need more time for that.I have also seen a link to the Arma Forum from the Iron Front "official"(!!)forum posted by oksman.But...i couldn't make it out or find his video.
If anyone does know how to do this can you please specify if i have to create a sqf file,and what goes where in each line...

thanks.
0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 456
Reply with quote  #2 
Ok so you have a trigger with the condition that an east unit has to be in the trigger zone, then create an empty marker where you want the flare to appear and call it marker1, then in the on activation have this code.
The flare will appear directly over the invisible marker called marker1 at a height of 150m, you change the class name of the flare to suit what colour flare you want.

flare1 = "F_40mm_white" createVehicle [(getmarkerpos "marker1" select 0),(getMarkerpos "marker1" select 1), 150]
0
Gunter Severloh

Avatar / Picture

Admin
Registered:
Posts: 2,757
Reply with quote  #3 
As what Tay said.
In a mission, put player down, and then an AI opfor down in the distance give him a move waypoint to where you are, but a little bit before where you are put a trigger down.

Set the trigger for OPFOR present

under name put
pos
then in the
activation line put:

flare = "F_40mm_white" createVehicle [getPos pos select 0, getPos pos select 1, 250];
make the trigger 50x 50 rectangle, and make sure you setup your OPFOR's waypoint so that he walks through it.

Set the time for evening or night, and then save, hit preview, and the flare launches 25m into the sky.

Now you can change some stuff, the color of the flare, and the height of it, so you change these codes:
flare = "F_40mm_white" createVehicle [getPos pos select 0, getPos pos select 1, 250];
make white be green, or red, and make 250, 100, or whatever.

__________________
0
Joe98

Avatar / Picture

Captain
Registered:
Posts: 196
Reply with quote  #4 
And, you don't need a Blueforce or Opforce unit to fire the trigger.


You could for example place a US soldier on the map, in an out of the way place, give him way points and have him fire the trigger.  
0
santiagojamesaea

Sergeant
Registered:
Posts: 106
Reply with quote  #5 
Ok,i think i've got all that.I'll post tomorrow with the results.Thanks a million everybody.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.