Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
dirtysnipe

Halo jump spawn how to?

Recommended Posts

I currently have the halo jump spawn installed but seem to be having an issue with it resetting the player and respawning them in halo jump every time they log out and back in.

Does anyone know how to fix this and can you help with the code?

Thanks.

Share this post


Link to post
Share on other sites

Do you want all spawns on the server to come in halo jumping or just fresh? If so do you have a my SQL via your server?

Share this post


Link to post
Share on other sites

Try adding it in so it only can activate from above 100m. Example from Openforums:

if (_inVehicle and (getPos player select 2 > 100)) then {

if (s_player_halojump < 0) then {

s_player_halojump = player addAction ["Halo Jump", "fixes\jump.sqf",[], 0, false, true, "",""];

};

} else {

player removeAction s_player_halojump;

s_player_halojump = -1;

};

even though im sure you would have look at it check out the post

http://opendayz.net/index.php?threads/halo-jumps-for-dayz.7439/

Share this post


Link to post
Share on other sites

Thats the post Ive been running from. Other people are having issues aswell from it resetting characters. I have seen one server running it with no problems but the admin will not disclose the fix. I will double check that code you put.

Yes i have access to mysql on the server and I only want it to halo spawn for new spawns.

Share this post


Link to post
Share on other sites

This is what i currently have in the init.sqf file

//HALO SPAWN SCRIPT

bis_fnc_halo = compile preprocessFileLineNumbers "fixes\fn_HALO.sqf";

if (!isDedicated) then {

[] spawn {

waitUntil { !isNil ("dayz_Totalzedscheck") and !(player getVariable ["humanity",0] > 5000 and typeOf player == "Survivor2_DZ") and !(player getVariable ["humanity",0] < -2000 and (typeOf player == "Survivor2_DZ" or typeOf player == "SurvivorW2_DZ") ) and !(player getVariable ["humanity",0] > 0 and (typeOf player == "Bandit1_DZ" or typeOf player == "BanditW1_DZ") ) };

if (dayzPlayerLogin2 select 2) then

{

_pos = position player;

"respawn_west" setMarkerPos [_pos select 0, _pos select 1];

[player, 1000] spawn bis_fnc_halo;

};

};

};

Share this post


Link to post
Share on other sites
Sign in to follow this  

×