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_trigger
nexplode( 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>