Jump to content

gerix

Member
  • Content Count

    14
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About gerix

  • Rank
    Private First Class
  1. Hey, first of all great job, you did there, keep it up!! :) And secondly a question: Will it be possible to edit arma 2 maps with this tool? Like import the map to arms 3 edit it and port it back to A2? Grüsse ausm Pott ;)
  2. Thanks after a lotta testing and some further changes with your script it works! Although the log is spammed with: B 1-1-D:8: Getting out while IsMoveOutInProgress B 1-1-D:9: Getting out while IsMoveOutInProgress B 1-1-D:10: Getting out while IsMoveOutInProgress B 1-1-D:11: Getting out while IsMoveOutInProgress B 1-1-D:12: Getting out while IsMoveOutInProgress and following... Someone knows how to fix that?
  3. Yes works now fine! Thanks @XxAnimusxX ;) But I still got a problem with the supply crate though.. It just spawns a Parachute at the ground wich despawns shortly after but the crate doesn't appear. Anyone a solution? Code: _cargoPlanePos = getPos _cargoPlane; sleep 1; _ammoBox = "USVehicleBox" createVehicle(_cargoPlanePos); _chute = "ParachuteBigWest" createVehicle [getPos _ammoBox select 0, getPos _ammoBox select 1,getPos _ammoBox select 2]; _ammoBox attachTo [_chute, [0,0,-1]]; // [...] while {getPos _ammoBox select 2 < 0} do { sleep 0.1; }; while {getPos _ammoBox select 2 > 1} do { sleep 0.1; }; detach _ammoBox; _ammoBox setVehicleInit "[this] call BIS_EVO_DropBox"; processInitCommands; BIS_EVO_DropBox = { _vec = _this select 0; clearWeaponCargo _vec; clearMagazineCargo _vec; _vec AddWeaponCargo ["M9SD", 1]; _vec AddWeaponCargo ["Binoculars", 1]; _vec AddWeaponCargo ["NVGoggles", 1]; _vec AddWeaponCargo ["M16A2", 1]; };
  4. I tried this, too. But it still doesn't work... They spawn properly inside the plane but just don't want to jump out. What am I doing wrong?? :O
  5. Ok so I tried it and changed all what you said but it still doesn't work... Also I noticed that the ammoBox doesn't drop so I think that it has to do with the _cargoPlane. This is the code of the creation of the cargoplane: _cargoPlane = createVehicle ["C130J", _cargoPlaneStart, [], 0, "FLY"]; _pilot = _pilotGroup createUnit ["TK_Soldier_Pilot_EP1", [12000, 12360, 0], [],0.9,"CAN_COLLIDE"]; _pilot moveInDriver _cargoPlane;
  6. Hello! I'm currently working on a paratrooper script but I got the problem, that the units don't jump out of the plane. [...] para2 = "TK_Soldier_Medic_EP1" createUnit [[0,0,0], _paraGroup, "this moveInCargo [_cargoPlane, 5]" , 0.9,""]; para2 action ["Eject", vehicle _cargoPlane]; unassignVehicle para2; sleep 0.5; para3 = "TK_Soldier_AT_EP1" createUnit [[0,0,0], _paraGroup, "this moveInCargo [_cargoPlane, 5]" , 0.9,""]; para3 action ["Eject", vehicle _cargoPlane]; unassignVehicle para3; sleep 0.5; _cargoPlanePos setPos (getPos _cargoPlane); sleep 2; _ammoBox = "USVehicleBox" createVehicle [0,0,0]; _obj_para setpos (getPos _cargoPlanePos); _chute = "ParachuteBigWest" createVehicle [getPos _ammoBox select 0, getPos _ammoBox select 1, getPos _ammoBox select 2]; _ammoBox attachTo [_chute,[0,0,0]]; _para setPos [getPos _box select 0, getPos _box select 1, 2000]; //MARKERS _markerBig = createMarker ["", (getPos _ammoBox)]; _markerBig setMarkerBrush "Solid"; _markerBig setMarkerColor "ColorRed"; _markerBig setMarkerPos _ammoBoxPos; _markerBig setMarkerSize [200, 200]; _markerBig setMarkerShape "ELLIPSE"; _markerSmall = createMarker ["SUPPLY DROP", (getPos _ammoBox)]; _markerSmall setMarkerBrush "Solid"; _markerSmall setMarkerColor "ColorBlack"; _markerSmall setMarkerPos _ammoBoxPos; _markerSmall setMarkerSize [100, 100]; _markerSmall setMarkerShape "ELLIPSE"; _markerText = createMarker ["SUPPLY DROP", (getPos _ammoBox)]; _markerSmall setMarkerBrush "Solid"; _markerSmall setMarkerColor "ColorBlack"; _markerText setMarkerShape "ICON"; _markerText setMarkerType "Empty"; _markerText setMarkerSize [1, 1]; This is only a small part of the script, btw. I'd be glad if theres somebody who could tell me what I'm doing wrong ;) Greedings GeriX
  7. Hey! I got another problem with spawning some paratroopers. Could somebody please tell me what I did wrong? TK_Soldier_SL_EP1 createUnit [getPos _cargoPlane, _paraGroup,"this moveInCargo [_cargoPlane, 5]; sleep 0.1; this action ["Eject", vehicle _cargoPlane]" , 0.9, "colonel"]; Error: Error in expression <argoPlane, 5]; sleep 0.1; this action ["Eject", vehicle _cargoPlane]" , 0.9, "co> Error position: <Eject", vehicle _cargoPlane]" , 0.9, "co> Error Missing ] File C:\Users\GA\Documents\ArmA 2 Other Profiles\GeriX\missions\ScriptTest.Chernarus\cargodrop.sqf, line 60 -GeriX
  8. Thanks for all your help, it is now fully working and just needs some "finetuning" :D If I get any other problems I'll inform you! Greeding GeriX
  9. If I put a starting position in the array it works, but have you any alternatives for a "random coordinate selection" ? And how do I give a variable a coordinate so I can put in a variable and not a coord in the array?
  10. Ok so i deleted the createVehicleCrew thing and it shows properly the cutText. I got some errors in the further script wich I can fix but theres still this "Error 0 elements provided, 3 expected" error wich drives me crazy D: Can you solve this one? "CARGODROP-SCRIPT LOADED!" "CARGODROP: C130J started flying from to NOW! (TIME:23)" Error in expression <c_selectRandom;_cargoPlane = createVehicle ["C130J", _cargoPlaneStart> Error position: <createVehicle ["C130J", _cargoPlaneStart> Error 0 elements provided, 3 expected File C:\Users\GA\Documents\ArmA 2 Other Profiles\GeriX\missions\ScriptTest.Chernarus\cargodrop.sqf, line 20
  11. I tried all of the editings, but the same Error still appears. Could you please check if the createVehicleCrew variable is okay? ----------------------------------------------------------------- EDIT: Just noticed what you wrote and I'm editing Arma 2 OA, onfortunately I didn't notice it's just for A3 :o I read this in a forum and I thought it was nescessary. I'm gonna try it without...
  12. Ok first of all thanks for your quick reply ;) Second, I changed the cutText as you said but now I get the following Error: Error in expression <tart, [], 0, "FLY"];createVehicleCrew _cargoPlane;_cargoGroup = createGroup > Error position: <_cargoPlane;_cargoGroup = createGroup > Error Missing ; File C:\Users\GA\Documents\ArmA 2 Other Profiles\GeriX\missions\ScriptTest.Chernarus\cargodrop.sqf, line 22 Error in expression <tart, [], 0, "FLY"];createVehicleCrew _cargoPlane;_cargoGroup = createGroup > Error position: <_cargoPlane;_cargoGroup = createGroup > Error Missing ; File C:\Users\GA\Documents\ArmA 2 Other Profiles\GeriX\missions\ScriptTest.Chernarus\cargodrop.sqf, line 22 "CARGODROP-SCRIPT LOADED!" The Script has about 170 lines more of code, what I postet is just the beginning part where the error was :) -GeriX
  13. Hello! I'm currently working on a SupplyDrop Script and I got a Error wich I can't fix and I hope somebody of you can help me with this: Beginning of the Code: diag_log "CARGODROP-SCRIPT LOADED!"; sleep 120; while {true} do { private["_cargoPlaneStart","_cargoPlaneEnd","_cargoPlane","_this","_cargoPlaneWP","_cargoPlanePos","_ammoBox","_ammoBoxType","_chute1","_ammoBoxPos","_markerBig","_markerSmall","_boxType","_log","_varNameCargo","_cargoGroup","_paraGroup","_paraWP"]; _cargoPlaneStart = [[3461.92,5021.77,200],[8582.35,14077.7,200]] call BIS_fnc_selectRandom; _cargoPlaneEnd = [[3461.92,5021.77,200],[8582.35,14077.7,200]] call BIS_fnc_selectRandom; //CREATE CARGOPLANE AND GROUP _cargoPlane = createVehicle ["C130J", getPos _cargoPlaneStart, [], 0, "FLY"]; createVehicleCrew _cargoPlane; _cargoGroup = createGroup east; _varNameCargo="CARGOPLANE"; _cargoPlane SetVehicleVarName _varNameCargo; //MESSAGE TO DISPLAY cutText("A supplydrop has just started! Go get it!"); diag_log(format["CARGODROP: C130J started flying from %1 to %2 NOW! (TIME:%3)", str(_cargoPlaneStart), str(_cargoPlaneEnd), round(time)]); //CREATE WAYPOINT FOR CARGOPLANE _cargoPlaneWP = _cargoGroup addWaypoint [getPos _cargoPlaneEnd]; _cargoPlaneWP setWaypointType "Move"; Error: "CARGODROP-SCRIPT LOADED!" Error in expression <c_selectRandom;_cargoPlane = createVehicle ["C130J", getPos _cargoPla> Error position: <createVehicle ["C130J", getPos _cargoPla> Error cuttext: 0 elements provided, 3 expected File C:\Users\GA\Documents\ArmA 2 Other Profiles\GeriX\missions\ScriptTest.Chernarus\cargodrop.sqf, line 20 Thanks for your help! Cheers
×