share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Wed, 05 Mar 2014 12:38:01 +0100
changeset 10178 949b51ca18c6
parent 9985 42cd42e44c9a
permissions -rw-r--r--
don't stack bye/teleport sounds of hogs (when a team is gone)

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end