Created
October 2, 2014 12:40
-
-
Save luastoned/c42f2a5481528b387248 to your computer and use it in GitHub Desktop.
LuaCraft Boom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function boom(ply, cmd, tbl) | |
local size = math.min(500, #tbl > 0 and tbl[1] or 5) | |
local trace = ply:GetEyeTrace() | |
ply:Msg("Boom: " .. size) | |
World(0):AddExplosion(trace.HitPos, size, false, true) | |
end | |
command.Add("boom", boom) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment