summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/common.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 14:18:52 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-22 14:18:52 -0400
commite014b7940d59c791c4a6e96ec27aa3232d3a39a1 (patch)
tree515ff14cf73b236d2159ea2703502abce0f3781f /gamemode/itemsystem/common.lua
parenteea3fcb40b4a52e5985859bf6bb77d3384d4d0f7 (diff)
downloadgmstranded-e014b7940d59c791c4a6e96ec27aa3232d3a39a1.tar.gz
gmstranded-e014b7940d59c791c4a6e96ec27aa3232d3a39a1.tar.bz2
gmstranded-e014b7940d59c791c4a6e96ec27aa3232d3a39a1.zip
Cleaned up the comments in the itemsystem
Diffstat (limited to 'gamemode/itemsystem/common.lua')
-rw-r--r--gamemode/itemsystem/common.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/gamemode/itemsystem/common.lua b/gamemode/itemsystem/common.lua
index 512bec5..edaac31 100644
--- a/gamemode/itemsystem/common.lua
+++ b/gamemode/itemsystem/common.lua
@@ -1,9 +1,13 @@
--This file holds a bunch of common functions that happen in items. They're seperated out here so that they're easy to change if there's a bug somewhere.
+--[[
+Provides:
+ startProcessGeneric(player_player, string_message, number_time, function_ondone)
+ Freezes the player, creates the loading bar, and calls ondone when the timer is up.
+]]
---Freezes the player, creates the loading bar, and calls ondone when the timer is up.
function startProcessGeneric(player, string, time, ondone)
- if(player.InProcess) then
- self.Owner:SendMessage("You can't do that much at once!", 3, Color(255, 255, 255, 255))
+ if (player.InProcess) then
+ player:SendMessage("You can't do that much at once!", 3, Color(255, 255, 255, 255))
return
end
player.InProcess = true