09-17-2010, 09:16 AM | #1 |
Pew pew ze beams
Join Date: Jan 2008
Gametype: Gathers Affiliations: pew pew Posts Rated Helpful 11 Times
|
Display messages
So basicly I want to put 3 diferent trigers in my map, that when you pass trought displays specific messages in the center of the screen only to the player that pass trought that trigger. If anyone can help i apreciate D :
|
|
09-17-2010, 09:20 AM | #2 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Code:
trigger_message_base = trigger_ff_script:new({ message="Default" }) function trigger_message_base:ontouch( touch_entity ) if IsPlayer( touch_entity ) then local player = CastToPlayer( touch_entity ) BroadCastMessageToPlayer( player, self.message ) end end trigger_message1 = trigger_message_base:new({ message="Message 1" }) trigger_message2 = trigger_message_base:new({ message="Message 2" }) trigger_message3 = trigger_message_base:new({ message="Message 3" })
__________________
#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 |
|
09-20-2010, 10:22 AM | #3 |
Pew pew ze beams
Join Date: Jan 2008
Gametype: Gathers Affiliations: pew pew Posts Rated Helpful 11 Times
|
Thks skeeq, it kinda workds, but its strange sometmies messages doesnt show other times they do show lol D :
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|