Page 1 of 1
Detect when dead..
Posted: Tue Jan 03, 2006 7:34 pm
by legendcf
Hi, How could i detect when someone is killed?
Say if they press a trigger & it sets them to glow & thy Suddenly get shot how could i set it back?
Posted: Tue Jan 03, 2006 11:27 pm
by lizardkid
put this around your glowy part of the script.
Code: Select all
while(isAlive local.player)
{
//glow
}
make sure local.player is defined.
Posted: Mon Jan 16, 2006 5:07 pm
by MPowell1944
Code: Select all
glowthread:
local.player = parm.other
while(isAlive local.player)
{
local.player light 1 0 0 50 // Red Green Blue GlowSize
wait 1
}
local.player light 0 0 0 0
end
Posted: Mon Jan 16, 2006 11:33 pm
by bdbodger
or
Code: Select all
glowthread:
local.player = parm.other
local.player light 1 0 0 50 // Red Green Blue GlowSize
local.player waittill death
local.player light 0 0 0 0
end
Posted: Tue Jan 17, 2006 9:53 am
by Elgan
bdbodger wrote:or
Code: Select all
glowthread:
local.player = parm.other
local.player light 1 0 0 50 // Red Green Blue GlowSize
local.player waittill death
local.player light 0 0 0 0
end
nein.
dont think so, i may be wrong but
doesnt exist
Posted: Tue Jan 17, 2006 9:56 am
by lizardkid
the "death" event doesn't exist for players. which is why you need to use the IsAlive check in a loop, for some reason the devs only put some things like death and saydone in for the AI.
Posted: Tue Jan 17, 2006 12:09 pm
by bdbodger
ah ok I thought it worked for players too .