Ingame API for current timestamp

Martin Labuť shared this feedback 3 years ago
Submitted

I have been working on a targeting/navigation script for some time, with the intention of making it work on vanilla game. Most of my work revolves around MyDetectedEntityInfo, which usually contains a timestamp, when the entity was detected. However, there is no way of retrieving current timestamp, so I have to resort to guessing from passing of time and incoming timestamps.

Basically what I am asking for is an accessor for MySandboxGame.TotalGamePlayTimeInMilliseconds

Replies (1)

photo
1

i can't believe we added timestamp in MyDetectedEntityInfo structure without giving us a way to access at current timestamp

Leave a Comment
 
Attach a file