07.07.2010, 15:49 | #1 (permalink) |
Registriert seit: 18.07.2009
Alter: 36
Beiträge: 90
|
editing guide airstrike in OA
hallo an alle,
ich habe ein kleines problem mit dem airstrike script aus der editing guide und zwar gibt er mir beim ausprobieren die fehlermeldung: bad vehicle type ..... hat jemand vielleicht eine ahnung was da gemacht werden muss. ich habe im script den flugzeugtyp geändert aber hat leider nichts gebracht. ich zeige aber mal wie das script jetzt aussieht. Code:
setfire=true; titleText ["Click on the map to set your firedirection","plain down"]; onMapSingleClick "ASTarget setPos _pos; setfire=false"; @!setfire; "Firedirection" setmarkerpos getPos ASTarget; onMapSingleClick ""; titleText ["", "plain down"]; ;=========DEFINE======================= _dropPosition = getpos ASTarget; ~0.5 _dropPosX = _dropPosition select 0; _dropPosY = _dropPosition select 1; _dropPosZ = _dropPosition select 2; ~0.1 _planespawnpos = [_dropPosX + 3000, _dropPosY, _dropPosZ + 1000]; _pilotspawnpos = [_dropPosX + 3000, _dropPosY, _dropPosZ + 1000]; ;=========CREATE======================= _PlaneG = creategroup WEST; _plane = createVehicle ["F35B",_planespawnpos,[], 0, "FLY"]; _plane setPos [(getPos _plane select 0),(getPos _plane select 1),900] ; _pilot = "SoldierWPilot" createUnit [getMarkerPos "Firedirection", _PlaneG, "P1=this"]; _Plane setVelocity [100,0,0] ; ~0.4 P1 moveinDriver _plane; P1 setDamage 0; P1 action ["gear_up", vehicle P1] ; _plane flyinHeight 100; _plane setSpeedMode "full"; #CHECK P1 doMove getPos ASTarget; P1 doTarget ASTarget; P1 doWatch ASTarget; ? (_plane distance ASTarget) < 1500 : goto "DROP" goto "CHECK"; =========FIRE======================= #DROP _i = 0 _plane flyInHeight 100; _plane setPos [(getPos _plane select 0),(getPos _plane select 1),100] ; ~13 #FIRE _i=_i+1 _plane fire "BombLauncher"; ~0.2 ? _i <= 6 : goto "FIRE" ;=========FLY AWAY======================= ASTarget setPos [0,0,0]; "Firedirection" setMarkerPos [0,0]; _plane setSpeedMode “Full” ~4 _plane flyInHeight 300; P1 doMove getPos ASTarget; #Check2 _plane setDamage 0; P1 setDamage 0; ? (_plane distance Player) > 2500 : goto "ENDE"; goto "Check2" ;=========DELETE======================== #ENDE; deleteVehicle _plane; deleteGroup _PlaneG deleteVehicle P1; exit |
07.07.2010, 17:17 | #3 (permalink) |
Registriert seit: 18.07.2009
Alter: 36
Beiträge: 90
|
danke burns ich hatte zwar das flugzeug auf A10 geändert aber dann vergessen den piloten zu ändern.
so ist der script richtig für OA falls das jemandem interessiert. Code:
setfire=true; titleText ["Click on the map to set your firedirection","plain down"]; onMapSingleClick "ASTarget setPos _pos; setfire=false"; @!setfire; "Firedirection" setmarkerpos getPos ASTarget; onMapSingleClick ""; titleText ["", "plain down"]; ;=========DEFINE======================= _dropPosition = getpos ASTarget; ~0.5 _dropPosX = _dropPosition select 0; _dropPosY = _dropPosition select 1; _dropPosZ = _dropPosition select 2; ~0.1 _planespawnpos = [_dropPosX + 3000, _dropPosY, _dropPosZ + 1000]; _pilotspawnpos = [_dropPosX + 3000, _dropPosY, _dropPosZ + 1000]; ;=========CREATE======================= _PlaneG = creategroup WEST; _plane = createVehicle ["A10_US_EP1",_planespawnpos,[], 0, "FLY"]; _plane setPos [(getPos _plane select 0),(getPos _plane select 1),900] ; _pilot = "US_Soldier_Pilot_EP1" createUnit [getMarkerPos "Firedirection", _PlaneG, "P1=this"]; _Plane setVelocity [100,0,0] ; ~0.4 P1 moveinDriver _plane; P1 setDamage 0; P1 action ["gear_up", vehicle P1] ; _plane flyinHeight 100; _plane setSpeedMode "full"; #CHECK P1 doMove getPos ASTarget; P1 doTarget ASTarget; P1 doWatch ASTarget; ? (_plane distance ASTarget) < 1500 : goto "DROP" goto "CHECK"; =========FIRE======================= #DROP _i = 0 _plane flyInHeight 100; _plane setPos [(getPos _plane select 0),(getPos _plane select 1),100] ; ~13 #FIRE _i=_i+1 _plane fire "BombLauncherA10"; ~0.2 ? _i <= 6 : goto "FIRE" ;=========FLY AWAY======================= ASTarget setPos [0,0,0]; "Firedirection" setMarkerPos [0,0]; _plane setSpeedMode “Full” ~4 _plane flyInHeight 300; P1 doMove getPos ASTarget; #Check2 _plane setDamage 0; P1 setDamage 0; ? (_plane distance Player) > 2500 : goto "ENDE"; goto "Check2" ;=========DELETE======================== #ENDE; deleteVehicle _plane; deleteGroup _PlaneG deleteVehicle P1; exit |
07.07.2010, 18:53 | #4 (permalink) |
Registriert seit: 02.12.2006
Ort: Germanistan
Alter: 46
Beiträge: 861
|
spar dir doch die arbeit und platziere einfach das " einfache unterstüzung " modul, dann hast auch unter luftunterstüzungsoption.
__________________
https://www.youtube.com/watch?v=FCSZFsyvPg8 |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Arma 1 Guide mit arma 2 kompatibel ? | Bakker | Editing & Scripting | 5 | 18.06.2010 19:41 |