Jump to content
Sign in to follow this  
Eatingyou

Steerable Chute problems

Recommended Posts

Hey,

i wrote this in the init line of every unit: [this] exec "ca\air2\halo\data\Scripts\HALO_getout.sqs"

and when i try my mission in the editor there are no problems with my steerable chute, but when in play this with my friend in a mp mission, i often happens, that one of us hasn't got a chute at all and dies because of the impact. Somethimes it is him, sometime it is me, who hasn't got a parachute but i don't why.

Sorry for my bad english and i hope to get some answers.

Share this post


Link to post
Share on other sites

Maybe move that from the init field into the init.sqf after a sleep and a waitUntil {player == player}; check? So if someone's slow in loading it won't make the chute till you're actually in game?

Share this post


Link to post
Share on other sites

Thank you i'll try if that works.

---------- Post added at 15:57 ---------- Previous post was at 14:27 ----------

Maybe move that from the init field into the init.sqf after a sleep and a waitUntil {player == player}; check? So if someone's slow in loading it won't make the chute till you're actually in game?

okay, i tried like to do what yous aind and this is my code:

sleep 30;

hint "Debug script loaded";

_playerArray ["p1", "p2", "p3", "p4", "p5", "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15", "p16", "p17", "p18", "p19", "p20", "p21", "p22", "p23", "p24", "p25", "p26", "p27, "p28", "p29", "p30", "p31", "p32", "p33", "p34", "p35", "p36", "p37", "p38", "p39", "p40", "p41", "p42", "p43", "p44"];

_playerCounter = 0;

while {(_playerCounter +1)< (count _playerArray)} do {if ((_playerArray select _playerCounter) == player) then {(_playerArray select _playerCounter) exec "ca\air2\halo\data\scripts\halo_getout.sqs"; _playerCounter = _playerCunter +1};};

hint "Done";

Okay thank you it works :D

Edited by Eatingyou

Share this post


Link to post
Share on other sites
Thank you i'll try if that works.

---------- Post added at 15:57 ---------- Previous post was at 14:27 ----------

okay, i tried like to do what yous aind and this is my code:

sleep 30;

hint "Debug script loaded";

_playerArray ["p1", "p2", "p3", "p4", "p5", "p6", "p7, "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15", "p16", "p17", "p18", "p19", "p20", "p21", "p22", "p23", "p24", "p25", "p26", "p27, "p28", "p29", "p30", "p31", "p32", "p33", "p34", "p35", "p36", "p37", "p38", "p39", "p40", "p41", "p42", "p43", "p44"];

_playerCounter = 0;

while {(_playerCounter +1)< (count _playerArray)} do {if ((_playerArray select _playerCounter) == player) then {(_playerArray select _playerCounter) exec "ca\air2\halo\data\scripts\halo_getout.sqs"; _playerCounter = _playerCunter +1};};

hint "Done";

it works, but there is an error in the RPT file.

Error at expression <int "Debug script loaded";

_playerArray ["p1", "p2", "p3", "p4", "p5", "p6", "p7>

Error position: <["p1", "p2", "p3", "p4", "p5", "p6", "p7>

Error missiong ;

File C:\Users\Username\Documents\ArmA 2 Other Profiles\Eatingyou\missions\NEW.Zargabad\Scripts\Player\Player init.sqf, line 3

Do you know how to fix that? :D

You missed one quote at the "p7" part of the array.

Share this post


Link to post
Share on other sites
You missed one quote at the "p7" part of the array.

I know you told me in Teamspeak, but why do you post this here? :P

Do you need posts? :P

Share this post


Link to post
Share on other sites
I know you told me in Teamspeak, but why do you post this here? :P

Do you need posts? :P

Yes :P And I wrote that script ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×