View Single Post
Old 09-29-2015, 04:10 AM   #111
[TALOS]Smoke
 
Join Date: Jul 2012
Location: Killeen, Tx, USA
Class/Position: Demo Defense
Gametype: Capture the Flag
Affiliations: [TALOS]
Posts Rated Helpful 3 Times
I have a trigger_ff_script that I need to only be *ahem* triggered by an emp. Here is what I have so far, not 100% sure it's correct

<quote>highvolt_trigger = trigger_ff_script:new({ team = Team.kUnassigned, team_name = "neutral" })

function highvolt_triggernexplode( explode_entity )
if grenade:Type() == Grenade.kEmp then
local grenade = CastToGrenade( explode_entity )

OpenDoor( self.team_name .. "_light_doorhack" )

end

return EVENT_ALLOWED
end

red_highvolt_trigger = highvolt_trigger:new({ team = Team.kBlue })
blue_highvolt_trigger = highvolt_trigger:new({ team = Team.kRed })</quote>

Last edited by [TALOS]Smoke; 09-29-2015 at 04:11 AM.
[TALOS]Smoke is offline   Reply With Quote