drew4452862 Posted November 19, 2017 Share Posted November 19, 2017 local timer = Timer() local pastTime = 0 function initialize() timer:start() tellPlayers("starting timer") while timer.seconds < 10 do local currentTime = timer.seconds if currentTime > pastTime then tellPlayers(timer.seconds) end pastTime = timer.seconds end end function tellPlayers (message) local players = {Sector():getPlayers()} for _, player in pairs(players) do player:sendChatMessage("Server", 0, message) end end Link to comment Share on other sites More sharing options...
Laserzwei Posted November 19, 2017 Share Posted November 19, 2017 where is this script attached to? Link to comment Share on other sites More sharing options...
drew4452862 Posted November 19, 2017 Author Share Posted November 19, 2017 where is this script attached to? This script only creates a time. So until you attach something to it... the Holy Ghost? Link to comment Share on other sites More sharing options...
Devious Posted November 20, 2017 Share Posted November 20, 2017 I reckon this is a modding resource, labeling the title accordingly could make it more useful for those looking for it. Link to comment Share on other sites More sharing options...
drew4452862 Posted November 21, 2017 Author Share Posted November 21, 2017 But now when you type 'timer' into the search field you get an example of the timer script and this picture of sasha grey Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now