Joined: 22 Oct 2012
|Posted: Thu Sep 07, 2017 1:18 am Post subject: [ACS] PLAYERINFO_TIME always returns -1
|When the GetPlayerInfo() ACS function is called to fetch the PLAYERINFO_TIME value, the returned value is always -1; except for the very first tick when the player joins for which it returns 0.
ACS code with which this was tested (in SP, and in CS in survival game mode):
|script 1 ENTER
int pnum = PlayerNumber();
Log(s:"Time for player #", d:pnum, s:": ", d:GetPlayerInfo(pnum, PLAYERINFO_TIME));
Test wad containing the above code: acstest-playerinfo_time.wad