SRB2 Message Board  

Go Back   SRB2 Message Board > Archived > SRB2 Forum Archives > Bug Reports (2.1.X)

 
 
Thread Tools Search this Thread
Old 04-30-2016   #1
742mph
My work is never done yet
 
742mph's Avatar
Default [2.1.15] player.timeshit is not properly handled by Lua

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)
__________________
Quote:
<Evilgasm> the opposite of egoraptor is Toa Tahu

Last edited by K.S.; 05-04-2016 at 10:33 AM.
742mph is offline  
Old 04-30-2016   #2
Wolfy
wolfs
Developer
 
Wolfy's Avatar
Default

Fixed in next. http://git.magicalgirl.moe/STJr/SRB2...154f5e3b8816a8
__________________
Quote:
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime
Wolfy is offline  
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.