Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
me too!! anyone can help?I put the script according to above putting right underneath self blood bag script in fn_selfAction file, but just kills my character whenever I ride onto the bike....
fn_selfactions------game/@dayzoverwatch/addons/dayz_code.pboCan you tell me the path you used to place the fn_selfactions and the folder.
have you added a custom folder inside your mission folder holding your fn_selfactions?fn_selfactions------game/@dayzoverwatch/addons/dayz_code.pbo
and game/mpmissions/dayz_1.Chernarus/spawnbike/bike&bike2
have you added a custom folder inside your mission folder holding your fn_selfactions?
Can you tell me the path you used to place the fn_selfactions and the folder.
if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then {
if (s_player_deploybike4 < 0) then {
s_player_deploybike4 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Motorcycle") +"</t>"),"spawnbike\bike4.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike4;
s_player_deploybike4 = -1;
};
if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then {
if (s_player_deploybike3 < 0) then {
s_player_deploybike3 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to Motorcycle") +"</t>"),"spawnbike\bike3.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike3;
s_player_deploybike3 = -1;
};
if((speed player <= 1) && cursorTarget isKindOf "CSJ_GyroC" && _canDo) then {
if (s_player_deploybike6 < 0) then {
s_player_deploybike6 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack GyroCopter") +"</t>"),"spawnbike\bike6.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike6;
s_player_deploybike6 = -1;
};
if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then {
if (s_player_deploybike5 < 0) then {
s_player_deploybike5 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to GyroCopter") +"</t>"),"spawnbike\bike5.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike5;
s_player_deploybike5 = -1;
};
awesome job buddy!To change it to where you can upgrade to a motorcycle place this above fn_selfActions above the previous coding for the bike:
Code:if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then { if (s_player_deploybike4 < 0) then { s_player_deploybike4 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Motorcycle") +"</t>"),"spawnbike\bike4.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike4; s_player_deploybike4 = -1; }; if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then { if (s_player_deploybike3 < 0) then { s_player_deploybike3 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to Motorcycle") +"</t>"),"spawnbike\bike3.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike3; s_player_deploybike3 = -1; };
and then put these in your spawnbike folder:
bike3
http://pastebin.com/jhHqWmz6
bike4
http://pastebin.com/LPr074Qw
Now if you are wanting to upgrade it to a gyrocopter like I have done add this above the motorcycle coding in fn_selfActions:
Code:if((speed player <= 1) && cursorTarget isKindOf "CSJ_GyroC" && _canDo) then { if (s_player_deploybike6 < 0) then { s_player_deploybike6 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack GyroCopter") +"</t>"),"spawnbike\bike6.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike6; s_player_deploybike6 = -1; }; if((speed player <= 1) && cursorTarget isKindOf "TT650_Civ" && _canDo) then { if (s_player_deploybike5 < 0) then { s_player_deploybike5 = player addaction[("<t color=""#007ab7"">" + ("Upgrade to GyroCopter") +"</t>"),"spawnbike\bike5.sqf","",5,false,true,"", ""]; }; } else { player removeAction s_player_deploybike5; s_player_deploybike5 = -1; };
and spawnbike folder
bike5
http://pastebin.com/MtukUviM
bike6
http://pastebin.com/J08mBgLu
Only thing I can think it might be is antihacks line.. try putting // infront of it then test. I don't have antihacks running due to the amount of bugs and shit it's got.my fn_selfAction.sqf is located @ MPMissions\dayz_1.chernarus\Fixes
I've also created spawnbike folder inside @ MPMissions\dayz_1.chernarus\
like what noobseals said, the filter is thinking that the bike has been spawned by a hacker.....
the script itself works perfectly fine, it's just that the "death bike" issue is making me ripping my own hair off atm......
Only thing I can think it might be is antihacks line.. try putting // infront of it then test. I don't have antihacks running due to the amount of bugs and shit it's got.
where can i find those lines?yeah, I am pretty sure it's the 1.7.7.1 anti hack is causing the problem, even found the line where they set Damage to 1 to kill players and break their leg etc, but if I remove those lines then that means hacker can just come in and spawn vehicles? :/
inside your init.sqf there will be a line around line 90 that says:where can i find those lines?
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
// [] execVM "\z\addons\dayz_code\system\antihack.sqf";
inside your init.sqf there will be a line around line 90 that says:
Code:[] execVM "\z\addons\dayz_code\system\antihack.sqf";
change that to
Code:// [] execVM "\z\addons\dayz_code\system\antihack.sqf";
If you are worried about hackers then battleye will still detect them, antihack is just another piece of shit they are giving us that won't work![]()
where can i find those lines?
I solved the problem by this:http://www.opendayz.net/threads/add...itor-and-then-do-it-working.13200/#post-67531