IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> JDAM Strike Script
SShadowFox
post Feb 8 2013, 23:56
Post #1


New Member
*

Group: Members
Posts: 1
Joined: 8-February 13
Member No.: 10,044



Hello, this Script is really basic, and simulates a JDAM Strike.

Here is the Readme.

QUOTE
This simple Script simulates a Call-for and JDAM Strike.

You must at first have defined the following things:

- Invisible H - Named ATarget
- Marker - Named Firepoint
- Random Unit of YOUR Team - Named Jet
- Random Unit of YOUR Team - Named Etac

To install the script, you don't need anything like a Trigger or something, you just need the following Scripts inside your mission folder.

Init.sqs - For the Action Menu entry be automatically loaded as soon as the game starts
Strike.sqs - For the JDAM Strike
Countdown.sqs - For the Time to Strike Countdown

To use:

1 - Click on "Call JDAM Strike" in the Action Menu.
2 - Click on the Map Position you want the bomb to strike.
3 - Wait 3 minutes until the "Jet" is overflying the area.
4 - Wait 45~50 seconds until the bomb reaches the target.

You'll be able to call another JDAM Strike 100 seconds after the bomb strike.

Remember that it doesn't use an actual JDAM, if you have find any mod that uses it, you can change the projectile that will spawn to the JDAM, but since I don't use any mods so far, it's still the GBU-12 in the Script.


Special Thanks to Mr-Murray, for his awesome Editing Guide, that's my source of wisdom about the ArmA Editor and a few things you can notice above, I basically copied the first part of his Artillery Script, because I was having some issues with the "onMapSingleClick", if wasn't that Script, I couldn't ever do this.


I'm sorry, my internet is a sh*t these days, so until I can get something better to upload, you'll need to copy the Scripts from here, paste on the Notepad and save as SQS.

Strike.sqs

CODE

; ****************************************************************
; Script file for Armed Assault
; Created by: SShadowFox
; ****************************************************************

; ***************** Air Support Script ***************************
; ***************** Units' Name **********************************

player RemoveAction JDAM

player setGroupid ["Alpha 1",""]

etac setGroupId ["Hunter 2", ""]

jet setGroupId ["Falcon 3", ""]

; ***************** Inital Scripts *******************************

setfire=true;

titleText ["Click on the map to set the Target","plain down"];

onMapSingleClick "ATarget setPos _pos; setfire=false";

@!setfire;

"Firepoint" setMarkerPos getPos ATarget;

onMapSingleClick "";

titleText ["", "plain down"];

~5

"Firepoint" setMarkerPos [0,0] ;

; ***************** Calling Support ******************************

player sideChat "Hunter 2, this is Alpha 1, I need imediate JDAM Strike at the marked coordinates, over"

~3

etac sideChat "Copy that Alpha 1, ETA 3 mikes, out"

; ***************** Striking *************************************

~180

jet sideChat "Alpha 1, this is Falcon 3, I'm above the target zone, requesting permission to release bomb, over"
~5
player sideChat "Copy that Falcon 3, you're clear to engage, over"
~5
jet sideChat "Bomb released, ETA of strike 50 seconds, out"

[] exec "countdown.sqs"

~50

bomb= "Bo_GBU12_LGB" createVehicle [(getPos ATarget select 0),( getPos ATarget select 1), 1]

~100

hint "You are now able to request another JDAM Strike"

JDAM = Player addAction ["Call JDAM Strike", "Strike.sqs"];

~5

hint ""


Countdown.sqs

CODE

; ****************************************************************
; Script file for Armed Assault
; Created by: SShadowFox
; ****************************************************************

; ***************** JDAM Strike Countdown Script *****************

hint "50"
~1
hint "49"
~1
hint "48"
~1
hint "47"
~1
hint "46"
~1
hint "45"
~1
hint "44"
~1
hint "43"
~1
hint "42"
~1
hint "41"
~1
hint "40"
~1
hint "39"
~1
hint "38"
~1
hint "37"
~1
hint "36"
~1
hint "35"
~1
hint "34"
~1
hint "33"
~1
hint "32"
~1
hint "31"
~1
hint "30"
~1
hint "29"
~1
hint "28"
~1
hint "27"
~1
hint "26"
~1
hint "25"
~1
hint "24"
~1
hint "23"
~1
hint "22"
~1
hint "21"
~1
hint "20"
~1
hint "19"
~1
hint "18"
~1
hint "17"
~1
hint "16"
~1
hint "15"
~1
hint "14"
~1
hint "13"
~1
hint "12"
~1
hint "11"
~1
hint "10"
~1
hint "9"
~1
hint "8"
~1
hint "7"
~1
hint "6"
~1
hint "5"
~1
hint "4"
~1
hint "3"
~1
hint "2"
~1
hint "1"
~1
hint "0"
~1
hint ""


Init.sqs

CODE

; ****************************************************************
; Script file for Armed Assault
; Created by: SShadowFox
; ****************************************************************

; ******************* Init for JDAM Test *************************

JDAM = Player addAction ["Call JDAM Strike", "Strike.sqs"];


I know there will be almost no one to use this, also, once again I'm sorry for not being able to upload it to somewhere.

This post has been edited by SShadowFox: Feb 9 2013, 00:40
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 25th April 2018 - 09:06