View Single Post
Old 02-26-2008, 12:21 AM   #24
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 352 Times
Send a message via AIM to squeek.
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).
__________________
#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