ItsMods

Full Version: How to delete HUD elements on death?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A waittill ("Death") function with self.HUD.alpha = 0; doesn't do it.. what can I do
Did you at least thread it on spawn?
Code:
self thread ResetOnDeath();

ResetOnDeath()
{
self waittill("death");
self.HUDVARIABLE.alpha =0 0;
}[/quote]

(We thread it on Spawn because if the hud text is put everytime then we want to reset it on death each time.)
[hr]
[quote='DidUknowiPwn' pid='103091' dateline='1377048652']
Did you at least thread it on spawn?
[code]self thread ResetOnDeath();

ResetOnDeath()
{
self waittill("death");
self.HUDVARIABLE.alpha =0 0;
}

(We thread it on Spawn because if the hud text is put everytime then we want to reset it on death each time.)
(08-21-2013, 02:30)DidUknowiPwn Wrote: [ -> ]Did you at least thread it on spawn?
Code:
self thread ResetOnDeath();

ResetOnDeath()
{
self waittill("death");
self.HUDVARIABLE.alpha =0 0;
}[/quote]

(We thread it on Spawn because if the hud text is put everytime then we want to reset it on death each time.)
[hr]
[quote='DidUknowiPwn' pid='103091' dateline='1377048652']
Did you at least thread it on spawn?
[code]self thread ResetOnDeath();

ResetOnDeath()
{
self waittill("death");
self.HUDVARIABLE.alpha =0 0;
}

(We thread it on Spawn because if the hud text is put everytime then we want to reset it on death each time.)

Yes i've done this.. but its to no avail so I'm very confused.
Well let's see the code.
(08-21-2013, 03:37)DidUknowiPwn Wrote: [ -> ]Well let's see the code.

Well I feel genuinely stupid.. but I might as well say what I did to fix it..
I guess It had to be threaded through _Rank
Well no it doesn't need to be from _rank. It could be from any GSC file you would want....
Code:
self waittill( "death" );
self.HUD destroy();