Fortress Forever

Fortress Forever (https://forums.fortress-forever.com/index.php)
-   Lua (https://forums.fortress-forever.com/forumdisplay.php?f=44)
-   -   LUA help. (https://forums.fortress-forever.com/showthread.php?t=21645)

DeToXxX 03-17-2010 09:32 PM

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_Point:ontouch(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

Sidd 03-17-2010 09:46 PM

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)

DeToXxX 03-17-2010 09:50 PM

ty sir =D


All times are GMT. The time now is 04:45 PM.

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