Kamber 1 Posted April 24, 2021 hello guys, I have a question for you. I have a server and I want to add a script to this server where people will open their parachutes at 100 meters after they parachute. This works successfully when I put the following commands into the init.sqf file in my task; [] spawn { while {true} do {private ['_player','_chute']; if ( (getPosATL player select 2 > 100) && (vehicle player IsEqualto player) && (alive player)) then { waitUntil {(position player select 2) <= 100}; addCamShake [8, 2, 20]; chute = createVehicle ['Steerable_Parachute_F', position Player, [], 0, 'FLY']; chute setPos position player; player moveIndriver chute; chute allowDamage false; }; sleep 2; }; }; But I can't do this on dedicated server. Nobody's parachute opens when I do it. What exactly should I do for the server? Can you say this as descriptively as possible? Thanks. 1 Share this post Link to post Share on other sites
wogz187 1083 Posted April 24, 2021 (edited) @Kamber, Add to initPlayerLocal, Spoiler _player spawn { if (((position _this) select 2) > 100 && vehicle _this isEqualTo _this && alive _this) then { waitUntil {sleep 0.2; if (((position _this) select 2) < 100) then { private _chute = createVehicle ['Steerable_Parachute_F', position _this, [], 0, 'FLY']; _chute setPos position _this; _chute allowDamage false; _this moveIndriver _chute; addCamShake [8, 2, 20]; true } else {false} } } else {false} } Or to try it in the init field of a unit, Spoiler null=this spawn { if (((position _this) select 2) > 100 && vehicle _this isEqualTo _this && alive _this) then { waitUntil {sleep 0.2; if (((position _this) select 2) < 100) then { private _chute = createVehicle ['Steerable_Parachute_F', position _this, [], 0, 'FLY']; _chute setPos position _this; _chute allowDamage false; _this moveIndriver _chute; addCamShake [8, 2, 20]; true } else {false} } } else {false} } Have fun! Edited April 25, 2021 by wogz187 missed a sneaky "player" 3 Share this post Link to post Share on other sites