Jump to content
bigshot

DeathCam that will pan to killer?

Recommended Posts

Anyone know of a script that I can use to pan the players camera to his killer/wounder?

Preferably something that not only works incase of death but also in cases of just wounding, if possible.

Share this post


Link to post
Share on other sites

something like:

 

player addEventHandler ["hit", {
  params ["_unit", "", "", "_killer"];
  if (isNil "travelling") then {
    travelling = TRUE;
    [_unit,_killer] spawn {
      params ["_unit","_killer","_cam"];
      _cam = "camera" camCreate getpos _unit;
      _cam cameraEffect ["internal","back"];
      _cam camSetTarget vehicle _killer;
      _cam camSetRelPos [5,2,3];
      _cam camSetFOV 0.1;
      _cam camCommit 4;
      sleep 4;
      travelling = nil;
    };
  };
}];

 

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×