Einzelnen Beitrag anzeigen
Alt 06.06.2004, 12:15   #7 (permalink)
Kompost
5000 Beiträge
 
Registriert seit: 25.10.2003
Beiträge: 8.502
Standard

Ich hab das hier mal in den Mapfact Foren aufgegabelt:
Code:
BAS_AIRope.sqs
erstellen
den Code unten einfügen und dann beim Wegpunkt NAME exec "BAS_AIRope.sqs"
Code:
	
;BAS AI fast roping script - TJ 2003 

;KISS 

;To be used for AI groups to fast rope at a designated WP 

_helo = _this 
_allcrew = crew  _helo 

_helo animate ["sidedoorl",0] 
_helo animate ["sidedoorr",0] 

_helo exec "\BAS_MAH60\FX\AIholdpos.sqs" 

#start 

@  _helo animationphase "switch1FRope" ==1 

? (getdammage _helo)>= 0.9:exit 

_array = [] 
"if (_x != driver _helo && _x != gunner _helo && _x in _helo) then {_array = _array + [_x]}" foreach _allcrew 
_allcrew = _array 

~1 
? (count _allcrew) == 0:goto "next" 

#loop 
?  _helo animationphase "switch1FRope" ==0:goto "next" 

;get the AI to rope out, one by one 

[_helo,(_allcrew select 0)] exec "\BAS_MAH60\FX\AIGO.sqs" 
~0.3 
[_helo,(_allcrew select 1)] exec "\BAS_MAH60\FX\AIGO2.sqs" 

_allcrew = _allcrew - [_allcrew select 0,_allcrew select 1] 

~0.8 

? count _allcrew !=0:goto "loop" 

#next 

~6 

_helo animate ["switch1FRope",0] 


exit
__________________
Kompost ist offline   Mit Zitat antworten