share/hedgewars/Data/Scripts/Params.lua
author alfadur
Thu, 09 Jul 2020 00:45:27 +0300
changeset 15734 b496233ac26d
parent 9985 42cd42e44c9a
permissions -rw-r--r--
make sentries reload after being hit

-- 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