Home   Help Search Login Register  

Author Topic: Rapple while hovering. . . ? ? ?  (Read 526 times)

0 Members and 1 Guest are viewing this topic.

mr.sert

  • Guest
Rapple while hovering. . . ? ? ?
« on: 09 Mar 2003, 09:28:50 »
I use this script to rapple. It works great, however I have found that the choppper has to keep moving in order for the script to work. I would like to be able to have units rapple while the chopper hovers. I have used hold waypoints but then the script wont activate. If someone knows how I could make this work, that would be great. Thanks in advance....


- Mr. Sert

RAPPLE. SQS

;
; Call this script with 2 parameters
; 1) The group that you want to rappel out of the HELO
; 2) The helo that you want them to rappel out of
;
; Right now, you have to PUT the GROUP into the HELO yourself with movein command in the
; init of the group, but I can easily add this at a later time
;
;   So the command to call this is as follows
;   [group,helo] exec rapple.sqs
;   Where group is the name of the group that you want to rappel
;   Where helo is the name of the helicopter that you want them to rappel out of
;

_Group = _this select 0
_Vehicle = _this select 1


_listunits = units _Group

_A = 0
_B = count _listunits
#KEEPSENDING
[(_listunits select _A), _Vehicle] exec "DoSingleRapple.sqs"
_A=_A+1
~3
?_B >_A:goto "KEEPSENDING"
~3
MoveNext = TRUE

DO SINGLE RAPPLE. SQS

_Distance = 1
_Man = _this select 0
_Vehicle = _this select 1
_Man allowdammage FALSE


_Man setpos [ (getpos _Vehicle select 0), (getpos _Vehicle select 1), (getpos _Vehicle select 2) - _Distance]
_Man setpos [ (getpos _Vehicle select 0), (getpos _Vehicle select 1), (getpos _Vehicle select 2) - _Distance]

unassignvehicle _Man

#MoveDown

_Distance = _Distance + .4
~.0005

_Man setdir 0
_Man setpos [ (getpos _Vehicle select 0), (getpos _Vehicle select 1), (getpos _Vehicle select 2) - _Distance]

? (_Distance < (getpos _Vehicle select 2)) : goto "MoveDown"

_Man setdammage 0
_Man setpos [ (getpos _Man select 0), (getpos _Man select 1), 0]
_Man setbehaviour "COMBAT"
[_Man] join leader _Man
_Man allowdammage TRUE


Josef

  • Guest
Re:Rapple while hovering. . . ? ? ?
« Reply #1 on: 09 Mar 2003, 18:28:26 »
There is a nice fastrope script here... on beta scripts...