![]() |
#1 (permalink) |
![]() Registriert seit: 08.08.2010
Ort: Naumburg/Saale
Alter: 62
Beiträge: 16
|
![]()
Ich nutze ein Script von [KH]BabyAlien "napalm.sqs".
Ausgelöst über Funk oder Auslöser,je nach Verwendungszweck. Ich habe schon zu Testzwecken die "Bo_FAB_250" geändert in "MineE" oder "M67". Alle Objekte "spawnen" am Boden und detonieren dort, bzw. die Mienen bleiben am Boden liegen (_theObject setdammage 1) weg gelassen. Nun,meine Kenntnisse des scriptens reichen bei weitem nicht aus, würde ich gerne das Objekt in diesem Script in einer bestimmten Höhe "Spawnen" lassen. Zum Beispiel die HuntIR-Granate oder ein Starshell bei 500 oder 1000 Meter über dem Boden. Wenn das mit diesem Script möglich währe in Form von geänderten oder hinzu gefügten Zeilen/Zeile,währe ich dafür dankbar. Hier das Script: Code:
; **************************************************************** ; Script file for Armed Assault ; Created by: [KH]BabyAlien ; **************************************************************** ; Example script call --> [theCar, howmany] exec "napalm.sqs" ; using too many howmanys (eg 500) might cause lag :D ;start script _theObject = _this select 0 _howmany = _this select 1 ;locate the first helepad to start bombing _bombLoc = GetPos _theObject _bombLocX = _bombLoc select 0 _bombLocY = _bombLoc select 1 _bombLocZ = _bombLoc select 2 ;locate the end position to start bombing _bombfinish = GetPos bombend _bombfinishX = _bombfinish select 0 _bombfinishY = _bombfinish select 1 _bombfinishZ = _bombfinish select 2 ;find out the distances on both X & Y coordinates between start and finish _shiftx = _bombfinishX - _bombLocX _shifty = _bombfinishY - _bombLocY ;find out the distance in gap between each bomb dropping _shiftx = _shiftx / _howmany _shifty = _shifty / _howmany ;Creating the bombs, detonating them and moving along each gap counting down until ;less than 1 bomb remains (which should be 0) and then it exits (stops the bombing run) #AGAIN "Bo_FAB_250" createVehicle[_bombLocX, _bombLocY, _bombLocZ] _theObject setdammage 1 _howmany = _howmany - 1 ?(_howmany < 1): exit ~0.15 _bombLocX = _bombLocx + _shiftx _bombLocY = _bombLocY + _shiftY goto "AGAIN" Michael |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Beta-Patch für OpA erschienen | det99 | Community | 1429 | 18.07.2014 17:51 |
Day & Weather Script | Moerderhoschi | Editing & Scripting | 13 | 02.12.2012 11:29 |
Arma 2 op oa script Problem | Benn1000 | Editing & Scripting | 19 | 21.04.2011 20:57 |
marker über script erzeugen | hypercop | Editing & Scripting | 2 | 28.08.2010 23:40 |
Improved Bullet Cam Script | miromanu | Editing & Scripting | 3 | 21.08.2010 02:01 |