Fixed [2.1.15] player.timeshit is not properly handled by Lua

Status
Not open for further replies.

742mph

My work is never done yet
Even though player.timeshit is the name of a player field used by SRB2, and the SRB2 Wiki claims it's Lua-compatible, Lua treats it as nil by default and seems to be unable to access the value stored by the game.

Code:
addHook("ThinkFrame", do
    for player in players.iterate
        if player.cmd.buttons & BT_USE then
            player.timeshit = $1 + 1
        end
    end
end)
CA4atgo.png
 
Last edited by a moderator:
Status
Not open for further replies.

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top