Skip to content

Locking User Input

Cody Howarth edited this page Feb 20, 2019 · 1 revision

These changes provide two ways to lock the user input:

First, the user input can be locked on a trial basis by adding the LockByTime attribute to the json config with the number of milliseconds after which the input should be locked. If the attribute is not set, the user input will remain unlocked.

Second, the user input can be locked by creating a GameObject labelled WallLock with a collider in the path of the car, in the desired prefab (See screenshots below). Note: if the object is intended to by invisible, the Mesh Renderer can be turned off.

Note: RoadRage.json default config now has a LockByTime value set for 8s.

wall-Object wall-Lock-Settings

Clone this wiki locally