![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Allows advanced users to set actor physics attributes directly, including some not accessible from .truck file format.
In AngelScript, the actor (BeamClass) got 2 new methods:
The set* function always logs _"[RoR|Actor] setSimAttribute: '{attr}' = {val}"_, where {attr} is the attribute name as string.
See available settings in Game2Script::ActorSimAttr enum.
Tip: To set this value automatically on each spawn, you can attach a script via .truck file format, see https://github.com/RigsOfRods/rigs-of-rods/pull/3001 and enter this code:
Measures to prevent cheating:
setSimAttribute()
, game sends script event SE_ANGELSCRIPT_MANIPULATIONS
which aborts the current race.setSimAttribute()
logs a warning to console ( appears on screen in the chatbox area) and does nothing.