cyrq
Valued Member!
This is working very nicely. Often players will say 'Why can't I abort?' (or something similar) when they die. Is there a way to display a hint for the player to see?
This shows they're in combat
This shows they need to wait X seconds, and counts downCode:cutText ["Cannot Abort while in combat!", "PLAIN DOWN"];
I can't get any text to appear when a player dies though. I've tried these (not all at once obviously):Code:cutText [format ["Can Abort in %1", (_timeMax - _timeOut)], "PLAIN DOWN"];
Code:cutText [format ["Can Abort in %1", (_timeMaxDead - _timeOutDead)], "PLAIN DOWN"]; titleText [format ["Can Abort in %1", (_timeMaxDead - _timeOutDead)], "PLAIN DOWN"]; hint "Press 'Esc' and wait for the \nAbort button to activate.";
The cutText and titleText seem to appear, but only once you close the menu (press Esc again), meaning that the countdown stops and their function is useless. This doesn't happen with cutText when you are not dead, and it will display correctly whilst the Esc menu is open. Does this have something to do with the death screen/image? Is there a way around it?
Hmmm, that actually gave me and Idea...
Problem is that the DeathScreen probably overlaps all the cuttext's, hint's etc. But we can do this the other way.
in player_death.sqf after:
Code:
TitleText[localize "str_player_12","PLAIN DOWN",5];
Add something like this:
Code:
_deathtxt = "<t color='#ff0000' size='1.6' shadow='1' shadowColor='#000000' align='center'>Press 'Esc' and wait for the Abort button to activate.</t>";
hint parseText (_deathtxt);
and voilÃ