As I'm tired of make blind shoots I have decided to test the code without ussign the rappel script, only necesary stuff for animation and descent.
TESTED IN MULTIPLAYER (dedicated server + 1 client)
This unit is in a helicopter called hsar2. (altura means high)
this code make the unit go outside the helicopter and make a soft descent
BUT WITHOUT THE RAPPEL ANIM
~5
_helo = hsar2
?!local player : exit
disableUserInput true
player action ["getout",_helo]
unassignvehicle player
player switchmove ""
player switchmove "null"
player switchmove "SNYropedown"
altura = (getpos player select 2) - 1
#descenso
player setvelocity [0,0,0]
player setpos [getpos player select 0,getpos player select 1, altura]
altura = altura - 0.3
~0.001
?altura > 1 : goto "descenso"
player switchmove ""
player setpos [getpos player select 0,getpos player select 1, 0.1]
disableUserInput false
this guy is in the ground at first after 5 seconds I teleport him to 30 mts. high
them .. the guy start a soft descent WITH THE RIGHT RAPPEL ANIM
~5
?!local player : exit
disableUserInput true
player switchmove ""
player switchmove "SNYropedown"
altura = 30
#descenso
player setvelocity [0,0,0]
player setpos [getpos player select 0,getpos player select 1, altura]
altura = altura - 0.3
~0.001
?altura > 0.5 : goto "descenso"
player switchmove ""
player setpos [getpos player select 0,getpos player select 1, 0]
disableUserInput false
So where is the problem ?
HERE -> player action ["getout",_helo]
for an strange reason, that makes the player don't accept
this line -> player switchmove "SNYropedown"
in Multiplayer games.
Anyone knows why ? I'm getting crazy with this.
I spent a big amount of hours trying to get this work in MP.