View Single Post
Old 09-29-2015, 07:29 AM   #112
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 350 Times
Send a message via AIM to squeek.
You mixed up the order of the if and the variable definition, and you might want to check that the cast succeeded. Those lines should be:

Code:
local grenade = CastToGrenade( explode_entity )
if grenade ~= nil and grenade:Type() == Grenade.kEmp then
The rest looks fine to me. Just make sure that you have "FF Grenades" checked in the trigger's flags in Hammer.
__________________
#FF.Pickup Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote