BetterDeadThanZed Posted March 16, 2015 Report Share Posted March 16, 2015 I am using an animated loading, which plays music and slowly moves the camera to the player (http://opendayz.net/threads/creating-a-spawn-intro-cut-scene.8324/#post-23699). Does anyone know of a way to give the player god mode until 5 seconds after the camera panning is finished, or maybe even god mode until they move? Link to comment Share on other sites More sharing options...
0 SchwEde Posted March 16, 2015 Report Share Posted March 16, 2015 waitUntil {!isNil ("dayzLoginRecord")}; // godmode on fnc_usec_damageHandler = {}; player allowDamage false; player removeAllEventhandlers 'handleDamage'; player addEventhandler ['handleDamage', {false}]; //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,0]; _camera camCommit 8; waitUntil {camCommitted _camera}; _camera cameraEffect ["terminate","back"]; camDestroy _camera; //godmode off fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf'; player allowDamage true; player removeAllEventHandlers 'HandleDamage'; player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ]; Link to comment Share on other sites More sharing options...
0 Brian Soanes Posted March 16, 2015 Report Share Posted March 16, 2015 waitUntil {!isNil ("dayzLoginRecord")}; //god mode on fnc_usec_damageHandler = {}; fnc_usec_unconscious = {}; player allowDamage false; //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,0]; _camera camCommit 8; waitUntil {camCommitted _camera}; _camera cameraEffect ["terminate","back"]; camDestroy _camera; uiSleep 5; //5 second sleep after camera ends //god mode off fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf"; player allowDamage true; Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted March 16, 2015 Author Report Share Posted March 16, 2015 waitUntil {!isNil ("dayzLoginRecord")}; // godmode on fnc_usec_damageHandler = {}; player allowDamage false; player removeAllEventhandlers 'handleDamage'; player addEventhandler ['handleDamage', {false}]; //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,0]; _camera camCommit 8; waitUntil {camCommitted _camera}; _camera cameraEffect ["terminate","back"]; camDestroy _camera; //godmode off fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf'; player allowDamage true; player removeAllEventHandlers 'HandleDamage'; player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ]; Do you keep these snippets of code just laying around waiting for someone to ask for it? :) *edit* Thanks for the reply Brian. I'll try both approaches. I think yours has the extra 5 seconds added to it, if I read the code right? Brian Soanes 1 Link to comment Share on other sites More sharing options...
0 SchwEde Posted March 16, 2015 Report Share Posted March 16, 2015 nope, just know where to search for it ^^ Link to comment Share on other sites More sharing options...
0 ElDubya Posted March 25, 2015 Report Share Posted March 25, 2015 +rep just for playing Johnny Cash :) Link to comment Share on other sites More sharing options...
Question
BetterDeadThanZed
I am using an animated loading, which plays music and slowly moves the camera to the player (http://opendayz.net/threads/creating-a-spawn-intro-cut-scene.8324/#post-23699).
Does anyone know of a way to give the player god mode until 5 seconds after the camera panning is finished, or maybe even god mode until they move?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now