Master-Of-Fungus-Foo-D wrote:crap it didnt work
heres the whole enchilada... heres the setthread....
airborne:
if (level.axishasspy != 3)
{
println "Be the otherteam... BE the other team"
local.lt = parm.other
if (local.pvt.dmteam == "axis" )
//should be local.lt.dmteam == axis ??
{
level.axishasspy++
setcvar "cg_3rd_person" "1" //debug
local.lt takeall
local.lt model "player/allied_airborne.tik"
local.lt item weapons/colt45.tik
local.lt item weapons/BAR.tik
local.lt ammo mg 60
local.lt ammo pistol 4
local.lt useweaponclass mg
while(level.axishasspy>0)
{
if (! isAlive local.lt )
{
setcvar "cg_3rd_person" "0"
level.axishasspy--
break
}
}
}
}
end[/code]
What do i write if waittill death doesnt work?
Moderator: Moderators
An ambiguous question will get a similar answer...
-
Green Beret
- Major General
- Posts: 746
- Joined: Mon Apr 19, 2004 12:21 pm
- Contact:
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
Strange, try these small changes to got a better idea of what's happening.
Code: Select all
println "level.axishasspy = :" level.axishasspy
while(level.axishasspy>0)
{
if (! isAlive local.lt )
{
setcvar "cg_3rd_person" "0"
level.axishasspy--
println "[player died] level.axishasspy = :" level.axishasspy
break
}
wait 1 //you should have a small pause in a while loop
} An ambiguous question will get a similar answer...
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
Hehe, maye I'm WELL over 21 more than twice that actually 
For the trigger once by the tagged player try this option:
For the trigger once by the tagged player try this option:
Code: Select all
airborne:
if (level.axishasspy != 3)
{
println "Be the otherteam... BE the other team :) "
local.lt = parm.other
if ((local.lt.dmteam == "axis") && (local.lt.istagged !=1))
{
level.axishasspy++
setcvar "cg_3rd_person" "1" //debug
local.lt takeall
local.lt model "player/allied_airborne.tik"
local.lt item weapons/colt45.tik
local.lt item weapons/BAR.tik
local.lt ammo mg 60
local.lt ammo pistol 4
local.lt useweaponclass mg
local.lt.istagged = 1 //new variable to track tagged player
while(level.axishasspy>0)
{
if (! isAlive local.lt )
{
setcvar "cg_3rd_person" "0"
level.axishasspy--
break
}
wait 1
}
}
}
endAn ambiguous question will get a similar answer...

