share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Fri, 13 Jun 2014 02:31:30 +0200
changeset 10292 1c6639b49afc
parent 9985 42cd42e44c9a
permissions -rw-r--r--
racer: if hog starts race without any weapon selected, select whatever is first

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