Re: TheWetMule
Code:
specific_tele = info_ff_script:new({ class = Player.kCivilian, team = Team.kUnassigned })
function specific_tele:allowed( touch_entity )
if IsPlayer( touch_entity ) then
local player = CastToPlayer( touch_entity )
return player:GetTeamId() == self.team and player:GetClass() == self.class
end
return EVENT_DISALLOWED
end
blue_scout_tele = specific_tele:new({ class = Player.kScout, team = Team.kBlue })
red_demo_tele = specific_tele:new({ class= Player.kDemoman, team = Team.kRed })
Make the trigger_teleport's names match the bottom-most names (blue_scout_tele, red_demo_tele, etc).