Brute
Member-
Content Count
131 -
Joined
-
Last visited
-
Medals
Everything posted by Brute
-
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
...any ideas? -
Vehicle drop from C130
Brute replied to frattonstation's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Just about to, i will report back when i have :) ---------- Post added at 05:22 PM ---------- Previous post was at 05:05 PM ---------- It worked perfectly, thanks mate. If anyone needs to drop multiple things the script i posted above works perfectly :) -
Vehicle drop from C130
Brute replied to frattonstation's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Could you please have a quick look through this script and tell me if its all correct? Code to activate: nul=[position,"classname0","classname1","classname2",dir] execVM "dropspawn.sqf"; Script file: dropspawn.sqf _pos = _this select 0; _spawntype0 = _this select 1; _spawntype1 = _this select 2; _spawntype2 = _this select 3; _dir = _this select 4; _airtype = "C130J"; _type = "GUE_Soldier_Pilot"; mygroup = creategroup side player; _target = createVehicle ["testsphere2",[_pos select 0,_pos select 1,-10], [], 0, "FLY"]; _target setpos [_pos select 0,_pos select 1,200]; _target setDir _dir; _vdir = vectorDir _target; _target setpos [(_pos select 0) + (_vdir select 0) * 26, (_pos select 1) + (_vdir select 1) * 26,200]; _apos = getposasl _target; _npos = [(_pos select 0) + (_vdir select 0) * -1500, (_pos select 1) + (_vdir select 1) * -1500, 300]; _vehicle = createVehicle [_airtype,_npos, [], 0, "FLY"]; _vehicle setpos _npos; _vehicle setDir _dir; _vehicle setvelocity [(_vdir select 0)*50,(_vdir select 1)*50, 5]; _type createUnit [_npos, mygroup,"pilot=this;"]; _pilot = pilot; _pilot moveindriver _vehicle; _pilot reveal _target; _pilot doMove _npos; _pilot dotarget _target; _pilot dowatch _target; _pilot FlyInHeight 400; _vehicle FlyInHeight 400; while {_vehicle distance _target > 40} do { sleep 0.5; if(_vehicle distance _target < 600) then { _pilot FlyInHeight 400; _pilot doMove _npos; }; }; _bpos = _vehicle ModelToWorld [0,-12,-5.5]; _bomb = _spawntype0 createVehicle _bpos; _bomb setpos _bpos; _bomb setDir direction _vehicle; _chute = "ParachuteMediumWest" createVehicle getpos _bomb; _chute setpos (_bomb ModelToWorld [0,0,3]); _bomb attachTo [_chute,[0,0,2.3]]; sleep 2; _bpos = _vehicle ModelToWorld [0,-12,-5.5]; _bomb = _spawntype1 createVehicle _bpos; _bomb setpos _bpos; _bomb setDir direction _vehicle; _chute = "ParachuteMediumWest" createVehicle getpos _bomb; _chute setpos (_bomb ModelToWorld [0,0,3]); _bomb attachTo [_chute,[0,0,2.3]]; sleep 2; _bpos = _vehicle ModelToWorld [0,-12,-5.5]; _bomb = _spawntype2 createVehicle _bpos; _bomb setpos _bpos; _bomb setDir direction _vehicle; _chute = "ParachuteMediumWest" createVehicle getpos _bomb; _chute setpos (_bomb ModelToWorld [0,0,3]); _bomb attachTo [_chute,[0,0,2.3]]; deletevehicle _target; sleep 0.05; _plane FlyInHeight 250; sleep 1; _plane FlyInHeight 450; _pilot doMove [(_pos select 0) + (_vdir select 0) * 800, (_pos select 1) + (_vdir select 1) * 800, 500]; sleep 15; deletevehicle _vehicle; deletevehicle _pilot; -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The artillery barrage completes and then the request artillery option disappears from the communications menu and does not return (well at least it didnt for the 5min i waited) -
Set seat position in vehicle
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I got it working, thanks guys -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Its working perfectly now however it only seems to allow for one artillery barrage? If there any way to increase this number or make it unlimited? -
Vehicle drop from C130
Brute replied to frattonstation's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I am planning on using this script to drop supplies to a smll village, since you are using it for the same thing Uzii could you please tell me what Z axis value you are using? Also if i wanted to adjust the script to drop multiple supply crates how would i go about doing this? -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Ah, silly mistakes :p Thanks a lot -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
http://rapidshare.com/files/252660144/Pulkovo__MH-60S_.Chernarus.rar.html -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
It is. I have created an SOM module and named it SOM and then synced it to my player and added the above code to my init.sqf file. -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Please read my above edit -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
If i am correct then this code will cause the player to have artillery support for the entire game? I have tried what you have suggested and it doesnt seem to work :( The SOM is definitely loaded however i do not have access to the artillery support feature -
Set seat position in vehicle
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thats what i have already done mate -
Vehicle drop from C130
Brute replied to frattonstation's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Anyone? -
Set seat position in vehicle
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Sorry i dont really understand what you are asking me to do exactly? The units are currently next to the heli in the editor? -
Set seat position in vehicle
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thats not really an option, the helis are out at sea transporting troops to a village. -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thats not exactly convenient, when i first asked if the artillery barrage could be requested through the main communication menu i meant without having to select Alpha on the map radio. -
Set seat position in vehicle
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I have tried that in both the MH-60S's initialization field and the players however no matter what cargo index i enter it doesnt change my position in the heli -
At the beginning of a mission when troops are being inserted via MH-60Ss i want an AV-8B to bomb a radio tower and then fly away and delete itself. I dont want the bomb run to be in any way dynamic, it should require no user input what so ever. Could anyone help please?
-
AV-8B Static Bombing Run
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Damn coding :p Is there a greater yeild bomb that the AV-8B carries that I could use? -
Vehicle drop from C130
Brute replied to frattonstation's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
To activate this script would i place a trigger with the code posted above nul=[position,"classname",dir] execVM "dropspawn.sqf"; however what parameters should i use for the classname and dir (obviously for the position i can just use a marker or game logic location)? -
AV-8B Static Bombing Run
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thats stupidly over complicated for something as simple as, if this trigger is activated then spawn this. -
AV-8B Static Bombing Run
Brute replied to Brute's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
That works perfectly however when i attempt to trigger the spawn of the AV-8B the plane simply will not spawn, I place a trigger that activated in the presence of BLUFOR and name it test and then set the condition of presence of the AV-8B to "test" however when i activate the trigger the AV-8B will not spawn :( -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
You are still forced to enter the map and select Alpha on the radio though? -
Easy artillery??
Brute replied to CapitanStratos's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Is there anyway to request an artillery barrage via the main communication menu?