Jump to content

Recommended Posts

I'm trying to make it so when anyone playing dies, we go into the old spectator mode (pre EndGame Spectator), for we actually prefer it. I've found the function BIS_fnc_cameraOld but due to having just about 0 experience with scripting, I have no idea how to apply it and everything I've tried has not worked. Any advice? Thanks

Share this post


Link to post
Share on other sites

In the init field of the unit you can put this:

this addMPEventHandler ["MPRespawn", {
	_player = _this select 0;
	_player call BIS_fnc_cameraOld;
}];

As soon as the unit respawns it is put in the old spectator mode.

Share this post


Link to post
Share on other sites

Hey thanks. I'm still struggling to get it to work. So I put that in the init, but the only time I can actually get it to put me into that old spectator mode is when I set an instant respawn, and when I do that it still respawns a unit right where I die, and I can't orient the camera in any direction, just move around while looking in one direction. Then as soon as I right click, it just brings me back to my character. I've tried messing with various options for respawn using both the editor options and description.ext, but to no avail. Is there I can make it so when anyone dies, they don't respawn and just go straight into that spectator mode? Thanks.

 

EDIT: So I just tried changing the event handler to MPKilled and setting respawn seagull and that has made some progress. When killed, I'll go into the old spectator mode, but so does everyone else. Also, the screen is all blurry. I tried setting the variable name and then changing "_player" to the variable name, but everyone still seems to go into the old spectator still. Know of anyway to make it specific to each person and anyway to get rid of the death blur? Thanks

Edited by thedancan
Further testing

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

×