if (false) then {
cutText [format["You are in combat and cannot build a bike."], "PLAIN DOWN"];
} else {
player removeAction s_player_deploybike;
closeDialog 602;
player removeWeapon "ItemToolbox";
player playActionNow "Medic";
r_interrupt = false;
_dis=10;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
sleep 6;
_object = "Old_bike_TK_INS_EP1" createVehicle (position player);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];
player reveal _object;
cutText [format["You have built a bike! You can re-pack bike at any time. "], "PLAIN DOWN"];
r_interrupt = false;
player switchMove "";
player playActionNow "stop";
sleep 10;
cutText [format["Warning: Spawned bikes DO NOT SAVE after server restart!"], "PLAIN DOWN"];
};
Everyone,
Need some help with a positioning issue when deploying bike in-game. It's spawning the bike behind the player rather than in front. Sometimes they deploy bike in woods and a object behind them (e.g. tree) will be in the way causing it to spawn 20m from player. I would like for it to spawn in front of player every time. Shown above is the current deploy bike script I use.
Question
steamROLLER
Everyone,
Need some help with a positioning issue when deploying bike in-game. It's spawning the bike behind the player rather than in front. Sometimes they deploy bike in woods and a object behind them (e.g. tree) will be in the way causing it to spawn 20m from player. I would like for it to spawn in front of player every time. Shown above is the current deploy bike script I use.
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now