Home   Help Search Login Register  

Author Topic: Advanced Laser Guided Bombing  (Read 635 times)

0 Members and 1 Guest are viewing this topic.

Milwot

  • Guest
Advanced Laser Guided Bombing
« on: 24 Aug 2003, 01:38:25 »
For those who know a bit about scripting, here's a problem for you. My test mission uses two scripts: one for detecting the laser, one for dropping the bombs. It works, though it needs modifications:

1. Make it so you can't drop more than one bomb at once (by disableing the radio) untill the "Bomber Pilot" says he's ready.

2. If possible (and easy), to make it so if you radio for the bomb but then turn off the Laser Designator, the error message will not appear. This is less important.

Anyway, take a look at the mission and let me know what you think.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:Advanced Laser Guided Bombing
« Reply #1 on: 24 Aug 2003, 10:47:31 »
havent looked at your mission.

Easiest way though to stopo more than one bomb being dropped at a time

have a boolean at the start of the bombing script

? Bombsaway:exit
Bombsaway=true; Publicvariable "Bombsaway"
and then at the end of the script, or when the bomb hits its target etc turn the boolean off
Bombsaway=false; Publicvariable "Bombsaway"

this way if a second bombing attempt is made while one bomb is in flight, the script will see Bombsaway as being true and exit
« Last Edit: 24 Aug 2003, 10:49:26 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Milwot

  • Guest
Re:Advanced Laser Guided Bombing
« Reply #2 on: 25 Aug 2003, 22:22:42 »
It works, perfectly.
Thanks

Unnamed

  • Guest
Re:Advanced Laser Guided Bombing
« Reply #3 on: 26 Aug 2003, 00:55:45 »
Hi,

Thats a handy little device and a good example. But I was wondering about that radio command, is it part of the addon that gets it to appear and disappear depending on if a target is painted?

Thanks

Milwot

  • Guest
Re:Advanced Laser Guided Bombing
« Reply #4 on: 27 Aug 2003, 00:16:01 »
The part that turns the laser on or off is just something that I added into the script for detecting the laser (Snyper's Script). Have a look at the script. If the laser is detected, the script says    1 setRadioMsg "AirStrike"                But if there is no laser detected, the script says 1 setRadoMsg "Null", turning off the radio.

The only problem is that you will get an error message if you paint the target, radio for the airstrike, but then turn off the laser before the bomb is "created."