Im editing a mission, i have invested much time in this one, its a coop.
It starts (teoretically) with a team of blackop players falling from the sky - doing a HALO.
The mission triggers and all that work just fine, the only dammit problem is that this HALO script (witch i hawe customized alot) doesnt work! and now since im not a scripting ace like some of you here are, i ask help here.
This is my last hope of not wasting HOUERS AND HOUERS of editing, because without the halo droop my mission is only the half of that i wanted to create.
Thats the code, ill quote it so you'll see how i customized it,
This script works just fine in singleplayer or non online multiplayer game, but NOT if its online on a server, players just sta on the ground and nothing happens... but take a look yourselves if you want to help me..
;;;Getpos all players at about 2000 meters altitude
AP1 setpos [getpos AP1 select 0, getpos AP1 select 1, (getpos AP1 select 2)+2010]
AP2 setpos [getpos AP2 select 0, getpos AP2 select 1, (getpos AP2 select 2)+2012]
AP3 setpos [getpos AP3 select 0, getpos AP3 select 1, (getpos AP3 select 2)+2014]
AP4 setpos [getpos AP4 select 0, getpos AP4 select 1, (getpos AP4 select 2)+2016]
;;;Set the altitude from the dummy chopper for the chute deployment
UH setpos [500,500,2900]
;;;Time during the players fall from the sky - then the chute opens
~27.8
;;;Get the positions of players
_aPchutepos = getpos AP1
_aPchx = _aPchutepos select 0
_aPchz = _aPchutepos select 1
_aPchy = _aPchutepos select 2
_aP2chutepos = getpos AP2
_aP2chx = _aP2chutepos select 0
_aP2chz = _aP2chutepos select 1
_aP2chy = _aP2chutepos select 2
_aP3chutepos = getpos AP3
_aP3chutepos = getpos AP3
_aP3chx = _aP3chutepos select 0
_aP3chz = _aP3chutepos select 1
_aP3chy = _aP3chutepos select 2
_aP4chutepos = getpos AP4
_aP4chx = _aP4chutepos select 0
_aP4chz = _aP4chutepos select 1
_aP4chy = _aP4chutepos select 2
;;;this is a sistem i figured out to make the script find out if given unit
;;;is in game or not, if its not in game the script wont execute
;;;the part of the not present unit - this is to avoid
;;;any error message executing the script with 2 players at the place of 4 (only for ex.).
;;;If unit is in game a barrel (for example ZZK) will be "killed"
;;;- giving the script the infos it needs.
?!(!not alive ZKK): goto "chute1"
goto "chute2"
;;;Dummy chopper teleports and ejects players - chute opens
#chute1
UH setpos [_aPchx, _aPchz, _aPchy]
AP1 moveincargo UH
AP1 action ["EJECT",UH]
AP1 setbehaviour "AWARE"
?!(!not alive ZKK2): goto "chute2"
goto "chute3"
#chute2
?!(!alive ZKK2): goto "chute3"
UH setpos [_aP2chx, _aP2chz, _aP2chy]
AP2 moveincargo UH
AP2 action ["EJECT",UH]
AP2 setbehaviour "AWARE"
?!(!not alive ZKK3): goto "chute3"
goto "chute4"
#chute3
?!(!alive ZKK3): goto "chute4"
UH setpos [_aP3chx, _aP3chz, _aP3chy]
AP3 moveincargo UH
AP3 action ["EJECT",UH]
AP3 setbehaviour "AWARE"
?!(!not alive ZKK4): goto "chute4"
goto "cont"
#chute4
?!(!alive ZKK4): goto "cont"
UH setpos [_aP4chx, _aP4chz, _aP4chy]
AP4 moveincargo UH
AP4 action ["EJECT",UH]
AP4 setbehaviour "AWARE"
goto "cont"
;;;Unassign players from the chopper
#cont
unassignvehicle AP1
unassignvehicle AP2
unassignvehicle AP3
unassignvehicle AP4
;;;Puts the chopper away
UH setpos [getpos UH1 select 0, getpos UH1 select 1, (getpos UH1 select 2)+0]
exit
What i do wrong here???
i hawe a gamelogic that executes the script at its initialization.
please help me if you get an idea what i do wrong cuz i cant figure out what it is, im a bloody scripting beginner O_O
(well, some months ago i was a total NewB)
thx for reading :-\