03-24-2009, 12:34 AM
|
#1
|
Join Date: May 2007
Posts Rated Helpful 0 Times
|
How do you extinguish an ENV_FIRE?
I need some help on this one. I'm including the whole LUA but the command line that troubles me concerns ENV_FIRE entities. As you can see below I am triggering several entities after a flag capture. I want the "blue_cap_fire" to "StartFire" and then to "ExtinguishTemporary" one second after... I can't seem to get the fire to extinguish. Help is appreciated.
Quote:
IncludeScript("base_ctf");
IncludeScript("base_location");
IncludeScript("base_respawnturret");
my_cap = basecap:new({})
function my_capncapture(player, item)
if player:GetTeamId() == Team.kBlue then
OutputEvent( "blue_cap_sound", "PlaySound" )
OutputEvent( "blue_cap_shake", "StartShake" )
OutputEvent( "blue_cap_splash", "Splash" )
OutputEvent( "blue_cap_fire", "StartFire" )
OutputEvent( "blue_cap_fire", 1, "ExtinguishTemporary" )
elseif player:GetTeamId() == Team.kRed then
OutputEvent( "red_cap_sound", "PlaySound" )
OutputEvent( "red_cap_shake", "StartShake" )
OutputEvent( "red_cap_splash", "Splash" )
OutputEvent( "red_cap_fire", "StartFire", )
OutputEvent( "red_cap_fire", 1, "ExtinguishTemporary" )
end
-- let the teams know that a capture occured
SmartSound(player, "yourteam.flagcap", "yourteam.flagcap", "otherteam.flagcap")
SmartSpeak(player, "CTF_YOUCAP", "CTF_TEAMCAP", "CTF_THEYCAP")
SmartMessage(player, "#FF_YOUCAP", "#FF_TEAMCAP", "#FF_OTHERTEAMCAP")
end
my_cap_red = my_cap:new({team = Team.kRed,
item = {"blue_flag","yellow_flag","green_flag"}})
my_cap_blue = my_cap:new({team = Team.kBlue,
item = {"red_flag","yellow_flag","green_flag"}})
|
|
|
|