Log inGet started
Package

ScriptControls.scene

This package holds more than this page lists. See all of its files in its world.

README.md

Script controls

This scene runs the native vehicle-only assembly through the driver's public command interface. Device input is deliberately disconnected (controlSource = script, inputMap = nil). Select your spawned ZeroVehicle during Play and edit NativeRiderDriver's throttle, commandLeftX, commandRightX/Y, triggers and button mask. These are the same command channels used by the native skating controller.

From an in-engine script:

local player = layers.active.players.localPlayer
local driver = player.avatar.component.get(asset.resolve('skate_physics.NativeRiderDriver','component'))
driver.throttle = 1
driver:setCommand({left={0.25,0},right={0,0},triggers={0,0},buttons=0})
-- Release all controls when your input source stops.
driver.throttle = 0
driver:clearCommand()

The normalized command interface accepts any controller source. No plugin rebuild or host filesystem is needed. Only drive the local player's avatar. Right-stick gestures and button masks retain the native skating interpretation; see GettingStarted for the control reference. Return to the Rider or SelfPropelled scene for keyboard/gamepad controls.