Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 03-17-2010, 10:32 PM   #1
DeToXxX
 
DeToXxX's Avatar
 
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense
Gametype: CTF
Affiliations: [TALOS] .t5
Posts Rated Helpful 3 Times
LUA help.

when I finish my concmap it says "name has finished concmasta" but, it stays on the screen. How can I make it only stay for like 5 seconds?

This is what I have so far...

Victory_Point = trigger_ff_script:new({})

function Victory_Pointntouch(touch_entity)
if IsPlayer(touch_entity) then
local player = CastToPlayer(touch_entity)
if Finished_Players:HasItem(player) then
return 0 -- This player has already finished the map.
else
BroadCastMessage(player:GetName() .. ' has completed Concmasta! Congratulations!', 6546, Color.kRed) -- 5 seconds, red color
player:AddFortPoints(19547796, 'Completed Concmasta!')
Finished_Players:AddItem(player)
end
end
end
DeToXxX is offline   Reply With Quote


Old 03-17-2010, 10:46 PM   #2
Sidd
Lua Team
 
Join Date: Mar 2007
Posts Rated Helpful 1 Times
Change your line:
Code:
BroadCastMessage(player:GetName() .. ' has completed Concmasta! Congratulations!', 6546, Color.kRed)
to
Code:
BroadCastMessage(player:GetName() .. ' has completed Concmasta! Congratulations!', 5, Color.kRed)
Sidd is offline   Reply With Quote


Old 03-17-2010, 10:50 PM   #3
DeToXxX
 
DeToXxX's Avatar
 
Join Date: Jul 2007
Location: Staten Island, NY
Class/Position: Offense
Gametype: CTF
Affiliations: [TALOS] .t5
Posts Rated Helpful 3 Times
ty sir =D
DeToXxX is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.