Home   Help Search Login Register  

Author Topic: Automatic Flare Launching Script  (Read 1336 times)

0 Members and 1 Guest are viewing this topic.

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Automatic Flare Launching Script
« on: 17 Sep 2002, 00:10:25 »
In a mission I am working on, once a trigger is activated, I need a script to automatically launch flares into the air every 60 seconds above a designated position. They are to be fired from a sentry tower into the air to assist soviet troops finding some escapees from a detention centre.
Once another condition is met (ie all 6 sentrie soldiers are dead) they are to cease.
I assume you can modify this script to work like a tripwire scenario at a designated trigger.
If anyone has tried this before, or knows how it is done, please insert it here.

Thanks heaps

Vortrog

Offline Dinger

  • Contributing Member
  • **
  • where's the ultra-theoretical mega-scripting forum
Re:Automatic Flare Launching Script
« Reply #1 on: 17 Sep 2002, 01:06:05 »
name the trigger mytrigger. I'm assuming the sentries are in different groups (there's an easier condition if they're the same group, but no matter. this way works).  Sentries named sentry1 - sentry6


Condition
this && ("alive _x" count [sentry1, sentry2, sentry3, sentry4, sentry5, sentry6] > 0) && time mod 60 < 15

activation
myflare = "Flare" camcreate [getpos mytrigger select 0, getpos mytrigger select 1, 108]
Dinger/Cfit

Bremmer

  • Guest
Re:Automatic Flare Launching Script
« Reply #2 on: 17 Sep 2002, 16:05:57 »
I have a nice little script that gets a grenadier to fire off flares continuously. You could stick the grenadier in the guard tower instead of just camcreating the flares. It will give your escapees a better chance of getting away if they can eliminate the flare guy.

I'll post the script later (@ work :()

Cheers

Bremmer

  • Guest
Re:Automatic Flare Launching Script
« Reply #3 on: 18 Sep 2002, 01:10:22 »
Here's the script - nice and simple. Call it using [grenadiername] exec "flaring.sqs"
ps. this is a version for a M203 grenadier. For an AK74 grenadier change M203muzzle to Grenadesmuzzle.


_unit = _this select 0
_unit removemagazines "GrenadeLauncher"

#loop
_unit addmagazine "Flare"
~15
_unit fire ["M203muzzle","Flare","Flare"]
goto "loop"


 :)

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Re:Automatic Flare Launching Script
« Reply #4 on: 20 Sep 2002, 00:07:04 »
Thanks guys. Ill have use for both of those.

 ;D ;D :D :D ;D ;D