Jump to content
Rammit79

Message on player death

Recommended Posts

Hi all,

 

Looking at making a Cold War scenario, but similar in style to the opening of BF1 in a kind of 'you are not expected to survive' kind of deal, is there a way to fade to black and give a message on screen when a player dies? This is for MP if it makes a difference.

 

Thanks!

Share this post


Link to post
Share on other sites
5 minutes ago, Rammit79 said:

is there a way to fade to black and give a message on screen when a player dies?

 

Hello there Rammit79 and welcome on Bis Forums !

 

In order to do this you need to add in your mission an

onPlayerKilled.sqf

and inside you can add your code , for example :

 

//A3\Missions_F_EPA\data\sounds\combat_deafness
playSound"combat_deafness";

[] spawn 
{		
		"dynamicBlur" ppEffectEnable true;   
		"dynamicBlur" ppEffectAdjust [20];   
		"dynamicBlur" ppEffectCommit 0;     
		"dynamicBlur" ppEffectAdjust [0.0];  
		"dynamicBlur" ppEffectCommit 12;  		
};	

sleep 3.5;
cutText ["","BLACK FADED",2];

titleText ["<t color='#ff0000' size='6'>You are Dead!</t>", "PLAIN", -1, true, true];

 

also take a look here if you want :

 

 

 

and since you are editing missions :

 

 

Have fun !

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

×