Jump to content
Sign in to follow this  
limmy3

After players death black screen

Recommended Posts

Hello again,

After the player is killed you see the terrain and buildings as cutsene.

I want to stop this and show a black screen.

Is this possible?  huh.gif

Regards limmy3

Share this post


Link to post
Share on other sites

Single player, right? Place file onPlayerKilled.sqs in mission dir:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">titlecut ["", "BLACK OUT",1];

enableEndDialog

The problem is that you can't actually see the end dialog when you black out. You could change the time to night with skiptime or have a black image displayed on screen smile_o.gif

Share this post


Link to post
Share on other sites

Thank you but how do you execute the file?

limmy3

Share this post


Link to post
Share on other sites

Ok thank you this works fine so far.

But the player has to press the Esc button to get out of that after you are dead and the screen got black.

Do you know how it exit it self. huh.gif

Because it keeps to be black.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">~1

titlecut ["", "BLACK OUT",1];

enableEndDialog

Exit

Exit won't work.

limmy3

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">killed = "_this exec "\PATH\onPlayerDeathBlack.sqs"";

note PATH can be empty. depends how you use it.

add this killedEH to your infantry / player.

script code:

WGLs ones

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(player != (_this select 0)): exit

?(WGLrespawn): goto "start"

exit

#start

titleCut ["","BLACK OUT",0.001]

enableRadio false

1 fadeSound 0

@alive player

titleCut ["","BLACK IN",1]

enableRadio true

1 fadeSound 1

exit

simple:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(player != (_this select 0)): exit

titleCut ["","BLACK OUT",0.001]

@alive player

titleCut ["","BLACK IN",1]

exit

Share this post


Link to post
Share on other sites

Hello Q,

I tried your code, thank you.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; This should show a black screen after the death of the player

?(player != (_this select 0)): exit

titleCut ["","BLACK OUT",0.001]

@alive player

titleCut ["","BLACK IN",1]

exit[

And this command in On Activ. field.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[] exec "RemoveEquipment.sqs"; Player exec "onPlayerDeathBlack.sqs"[But it won't work. banghead.gif

So were is the mistake? Did I do one?  huh.gif

Regards limmy3

Share this post


Link to post
Share on other sites

Hello you all,

thank you for your  help.gif .

The asnwer was

Quote[/b] ]onplayerkilled.sqs
 biggrin_o.gif

Well, at the end it didn't become a black screen but I think something better.

I died a hundred death only to make this end scene perfect.  goodnight.gif

Hope this mission will be ready in a few days.  smile_o.gif

Looking forward to let it be released.

Regards limmy3

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
Sign in to follow this  

×