Page MenuHomeFeedback Tracker

Create callbacks for CarController use
Assigned, UrgentPublic

Description

Within the simulation for cars, there needs to be a script function that allows modders to update the CarController.

I'm assuming within the engine side there is this pseudocode

CLASS Car
  FUNCTION Simulate
    LET thrust = 0
    IF driver
      thrust = driver.GetInputValue(UACarForward)
    ENDIF

    controller.SetThrust(thrust)

    do physics simulation
  ENDFUNCTION
ENDCLASS

What needs to be done is a script function callback needs to be added after the inputs are read but before the physics simulation is performed where we can update the controller values. As currently, there is no way to update the controller values.

Another thing that needs to be done is a way to set the current vehicle's gear independent of the animation system. Just add a setter within the Car class (not CarController) that immediately updates the gear.

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General
Additional Information

This is a duplicate of https://feedback.bistudio.com/T147126 but that was ignored and this offers a bit more information

Event Timeline

Geez changed the task status from New to Assigned.May 17 2021, 2:43 PM