HALO Jump On Spawn! - Tutorial

I had followed the steps, anyways, They both work I have a small problem. now when I re log, the login camera script seems to be looping. and jittery going crazy basically. Its like the script wont stop?

logincamer_execute
Code:
camera = compile preprocessFileLineNumbers "Camera\logincamera_execute.sqf";
waitUntil {!isNil ("dayz_Totalzedscheck")};

if !(dayzPlayerLogin2 select 2) then
{
    [] execVM "Camera\logincamera_execute.sqf";
};
_nul = [] execVM "camera\logincamera.sqf";

inside init:
Code:
//Run the player monitor
        _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "Camera\logincamera_execute.sqf";}];
        _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
        _nul = [] execVM "Camera\logincamera_execute.sqf";

halo script inside init:
Code:
/HALO SPAWN SCRIPT
bis_fnc_halo = compile preprocessFileLineNumbers "custom\halo\fn_halo.sqf";
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (!isDedicated) then {
    [] spawn {
        waitUntil { !isNil ("dayz_Totalzedscheck") and  !(player getVariable ["humanity",0] > 50000 and typeOf player == "Survivor2_DZ") and !(player getVariable ["humanity",0] < -50000 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 && dayzPlayerLogin select 4) then
        {
            _pos = position player;
            "respawn_west" setMarkerPos [_pos select 0, _pos select 1];
            [player, 3000] spawn bis_fnc_halo;
    [] execVM "custom\halo\fn_halo.sqf";
            _nul = [] execVM "custom\altimeter.sqf";
        };
   };
};

the logincam script itself:
Code:
private [ "_camera", "_welcomeMessage", "_camDistance" ];
_welcomeMessage = format["Welcome to Dayz Hero Server %1, Enjoy your stay!",format["%1", name player]];
_camDistance = 60;
playsound "introSong";


//intro move
showCinemaBorder true;
camUseNVG false;
_camera = "camera" camCreate [(position player select 0)-100*sin (round(random 359)), (position player select 1)-100*cos (round(random 359)),(position player select 2)+60];
_camera cameraEffect ["internal","back"];
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 15;
cutText [_welcomeMessage, "PLAIN DOWN"];
waitUntil {camCommitted _camera};
_camera cameraEffect ["terminate","back"];
camDestroy _camera;


Do these look right to you guys? or am I doing something drastically wrong?
Forgive me im fairly new :s
 
Sorted it. It was a problem with the logincamera_execute.sqf
It should be like this instead:
Code:
camera = compile preprocessFileLineNumbers "Camera\logincamera_execute.sqf";
waitUntil {!isNil ("dayz_Totalzedscheck")};

if !(dayzPlayerLogin2 select 2) then
{
  [ ] execVM "Camera\loginCamera.sqf";
};
 
This works with the overwatch?
I'm sure I put in the correct place, but did not produce any effect.

I restart the server, I died to born again ... nothing = (
 
Worked once if I killed myself, but I spawned as a zombie. Now when I spawn again it doesn't work. It just spawns me at a normal spot on ground.
 
Back
Top