Lua:Bullettime

Lua:Bullettime

From BeamNG

Revision as of 02:40, 22 January 2015 by Nug700 (talk | contribs) (added attributes and public interface.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A wrapper class to control bullet physics.

File location: lua\vehicle\bullettime.lua

Attributes

number wantedSimulationSpeed = 100
number simulationSpeed = 100
number bulletMode = 0 -- 1 = auto, with timer, 0 = disabled, 2 = manual
number maxBulletTime = 10
number selectionSlot  -- 5

Member Functions

nil update (dt)
nil reportSpeed ()
nil selectPreset (preset)
nil set (val)
nil slowMotion (slowdownTime, slowDownPercent)
nil reset () -- function body commented out.
nil guiUpdate ()
nil guiUpdate ()
nil onDeserialized ()

Public Interface

  • update
  • reset
  • set
  • selectPreset
  • slowMotion
  • guiUpdate
  • onDeserialized