The Timer sensor returns elapsed scenario time in seconds since the scenario started. It pauses when the simulation is paused and does not represent wall-clock or in-world date/time.
Unlike the vehicle sensors on this page, the Timer is handled on the game engine (GE) side, not on the vehicle VM.
The sensor is available to use from
Python API
. It has no extensions.tech_sensors.create* / get*Readings Lua API.
This sensor does not use extensions.tech_sensors.create*. Request it through a tech client (BeamNGpy, ROS, or similar) with a game-engine SensorRequest containing {type = 'Timer'}.
{type = 'Timer'}
Args:
None.
Returns: response(table):
Was this article helpful?