Well this one may as well still have the problems at which you will be telling me about tonight but this is my newest version of this script
Javaman
;In Game Call=["TriggerName",HowManyShells,targetRadius,Title,ObjectType,quad1,quad2,quad3,quad4,"DevMode"] exec "java.sqs"
;TriggerName=The Name of your Trigger
;HowManyShells=How many bombs you want to fall
;targetRadius=how close from the target do u want to have the bombs drop
;Title= find out if it should warn you to take cover or not with a text warning
;Object Type=kind of shell you want to use
;quad1=top left kill zone (on=1 off=0)
;quad2=top right kill zone (on=1 off=0)
;quad3=bottom left kill zone (on=1 off=0)
;quad4=bottom right kill zone (on=1 off=0)
;DevMode=With this on it will just pop up a text message telling you what quad is firing and which one is not
;Example [bomb,20,40,true,"Shell125",1,1,1,1,"DevMode"] exec "java.sqs"
;========================================================================
;Initialize All Arrays
;========================================================================
TriggerName=[]
AmountofShells=[]
TriggerSize=[]
Title=[]
ObjectType=[]
BreakupTriggerPosXYZ=[]
x =[]
y =[]
z =[]
ShellPostion=[]
;========================================================================
;Initialize All Public Var for Multiplayer
;========================================================================
publicVariable "TriggerName"
publicVariable "AmountofShells"
publicVariable "TriggerSize"
publicVariable "Title"
publicVariable "ObjectType"
publicVariable "BreakupTriggerPosXYZ"
publicVariable "x"
publicVariable "y"
publicVariable "z"
publicVariable "ShellPosition"
;========================================================================
;GET INFORMATION FROM ARRAY
;========================================================================
;MarkerName
TriggerName = _this select 0
;HowManyBombs
AmountofShells = ((_this select 1) / 4)
;Random Number for Marker Pos
TriggerSize=random (_this select 2)
;Next 3 lines with find out if it should warn you to take cover or not
Title=(_this select 3)
?(Title) : titletext ["\n\n\n\n\n\n\nTake cover ! INCOMING","plain", 2]
~(random 2)
;Create ObjectType (art shell) and make it drop in random postions based on TriggerSize
ObjectType = _this select 4
;========================================================================
;Find Marker Postion so i can make it a random postion
;========================================================================
BreakupTriggerPosXYZ = GetPos TriggerName
x = BreakupTriggerPosXYZ select 0
y = BreakupTriggerPosXYZ select 1
z = BreakupTriggerPosXYZ select 2
;========================================================================
;Make Label to come back to if need be
;========================================================================
#Loop
;========================================================================
; Choose a QUAD position inside the tigger
;========================================================================
;quad1=top left
? (_this select 5) == 1 : ObjectType camCreate [x -(random TriggerSize),y + (random TriggerSize),z]
? (_this select 5) == 1 : DidItFire=True
? (_this select 5) != 1 : DidItFire=False
? (_this select 9) == "DevMode" : titletext [format ["\n\n\n\n\n\n\nQUAD 1=%1.", DidItFire],"plain",1]
~(random 1)
;quad2=top right
? (_this select 6) == 1 : ObjectType camCreate [x +(random TriggerSize),y + (random TriggerSize),z]
? (_this select 6) == 1 : DidItFire=True
? (_this select 6) != 1 : DidItFire=False
? (_this select 9) == "DevMode" : titletext [format ["\n\n\n\n\n\n\nQUAD 2=%1.", DidItFire],"plain",1]
~(random 1)
;quad3=bottom left
? (_this select 7) == 1 : ObjectType camCreate [x -(random TriggerSize),y - (random TriggerSize),z]
? (_this select 7) == 1 : DidItFire=True
? (_this select 7) != 1 : DidItFire=False
? (_this select 9) == "DevMode" : titletext [format ["\n\n\n\n\n\n\nQUAD 3=%1.", DidItFire],"plain",1]
~(random 1)
;quad4=bottom right
? (_this select 8) == 1 : ObjectType camCreate [x +(random TriggerSize),y - (random TriggerSize),z]
? (_this select 8) == 1 : DidItFire=True
? (_this select 8) != 1 : DidItFire=False
? (_this select 9) == "DevMode" : titletext [format ["\n\n\n\n\n\n\nQUAD 4=%1.", DidItFire],"plain",1]
~(random 1)
;========================================================================
;minus one from AmountofShells
;========================================================================
AmountofShells=AmountofShells-1
;========================================================================
;Check amount counter to see if we need to loop again for another Bomb Run
;========================================================================
?(AmountofShells > 0) : goto "Loop"
;========================================================================
;Keep this or del it , made for testing only so i knew when it was done bombing
CreateFlare = "FlareGreen" camCreate [x + TriggerSize,y + TriggerSize,z + 100]
end