✪ Bateka Posted January 14 Share Posted January 14 Hello i added the intro cam to my server and i have an error in the log. i dont find where is the error. I give you my log. fn_IntroCam.sqf: /* File: fn_IntroCam.sqf Author: Dexter ( script might already be known, havent seen it yet though ) */ private ["_camera", "_camDistance","_randCamX","_randCamY","_camTime"]; _camDistance = 350; _randCamX = 75 - floor(random 150); _randCamY = 75 - floor(random 150); _camTime = 30; // you can change the time for sure, I adjusted mine to the intro music // the one below basically says that if you already joined the server once the time of the camera movement will be faster, else it might get annoying if(!life_firstSpawn) then { _camTime = 30; }; //intro move showCinemaBorder true; camUseNVG false; _camera = "camera" camCreate [(position player select 0)+_randCamX, (position player select 1)+_randCamY,(position player select 2)+_camDistance]; _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 _camTime; waitUntil {camCommitted _camera}; _camera cameraEffect ["terminate","back"]; camDestroy _camera; life_firstSpawn = false; And the RPT Log: Successfull attempt to execute serverCommand '#exec users' by server. [] Error in expression <oor(random 150); _camTime = 30; if(!life_firstSpawn) then { _camTime = 30; }> Error position: <life_firstSpawn) then { _camTime = 30; }> Error Undefined variable in expression: life_firstspawn File mpmissions\Altis_Life.Altis\scripts\fn_introcam.sqf..., line 18 Thanks for you help Quote Link to comment Share on other sites More sharing options...
gustavseitztestarma3 Posted January 15 Share Posted January 15 Do you have life_firstSpawn = true; in your configuration.sqf file? Quote Link to comment Share on other sites More sharing options...
✪ Bateka Posted January 15 Author Share Posted January 15 (edited) No i don't have... i must add in section "Backend Variables" ? Edited January 15 by ✪ Bateka Quote Link to comment Share on other sites More sharing options...
gustavseitztestarma3 Posted January 16 Share Posted January 16 yes, put it there and that should solve your problem Quote Link to comment Share on other sites More sharing options...
✪ Bateka Posted January 16 Author Share Posted January 16 I put it but i have the same error in my RPT... Quote Link to comment Share on other sites More sharing options...
gustavseitztestarma3 Posted January 16 Share Posted January 16 Hmm, also make sure you have this in your fn_spawnConfirm.sqf if (life_firstSpawn) then { [] spawn { cutText ["","BLACK IN"]; [] execVM "script\fn_introcam.sqf"; life_firstSpawn = false; }; }; if it still doesn't work, try asking the original author for help or redo the tutorial Quote Link to comment Share on other sites More sharing options...
✪ Bateka Posted January 16 Author Share Posted January 16 i have like this its ok ? if (life_firstSpawn) then { life_firstSpawn = false; [] call life_fnc_welcomeNotification; playSound "Welcome"; [] execVM "core\intro\fn_introtext.sqf"; [] execVM "scripts\fn_introcam.sqf"; }; Quote Link to comment Share on other sites More sharing options...
✪ Bateka Posted January 16 Author Share Posted January 16 The script is working but i don't now why a i have this error in my RPT log... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.