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?
Detect when dead..
Moderator: Moderators
put this around your glowy part of the script.
make sure local.player is defined.
Code: Select all
while(isAlive local.player)
{
//glow
}Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
- MPowell1944
- Moderator
- Posts: 287
- Joined: Thu Jan 09, 2003 7:06 am
- Location: Woodstock, GA
- Contact:
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
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
endnein.bdbodger wrote:orCode: 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
dont think so, i may be wrong but
doesnt existbdbodger wrote:Code: Select all
local.player waittill death end
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.
Last edited by lizardkid on Thu Jan 19, 2006 11:23 am, edited 1 time in total.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
