void ForceSetOwner (int newOwner, int vehicleId)
Force player of the id owned this vehicle, but only between this spawned vehicle. But it seems the new owner can’t drive on this vehicle.
void ForceActivate ()
Force player drive on this vehicle
void ForceDeactivate ()
Force player out of the vehicle.
void SuppressTimeout ()
Disable the vehicle automatic respawn
void OverrideOnClick (Closure onClick)
Add onClick method to this vehicle,onClick have to be a closure.
float VerticalInput get set
Force vertical offset value, it would be added to vertical control and never set to zero.
float HorizontalInput get set
Force horizontal offset value, it would be added to horizontal control and never set to zero.
float StrafeInput get set
Force strafe offset value,it would be added to strafe control and never set to zero.
float DepthInput get set
Force depth offset value, it would be added to depth control and never set to zero.
bool IgnoreUserInput get set
If this option is enabled, user input would be ignored until disable this.
Driver get
Get the player avatar component.
GameObject get
Returns the GameObject of this Vehicle component.
void ForceSetOwner (int newOwner, int vehicleId)
void ForceActivate ()
void ForceDeactivate ()
void SuppressTimeout ()
void OverrideOnClick (Closure onClick)
float VerticalInput get set
float HorizontalInput get set
float StrafeInput get set
float DepthInput get set
bool IgnoreUserInput get set
SAvatar Driver get
SGameObject GameObject get
Space.Host.ExecutingObject.Vehicle.ForceSetOwner(AvatarID)Space.Host.ExecutingObject.Vehicle.ForceActivate()Space.Host.ExecutingObject.Vehicle.ForceDeactivate()Space.Host.ExecutingObject.Vehicle.SuppressTimeout()Space.Host.ExecutingObject.Vehicle.OverrideOnClick(NewOnClickFunction)Space.Host.ExecutingObject.Vehicle.VerticalInput = 0.5Space.Host.ExecutingObject.Vehicle.HorizontalInput = 0.5Space.Host.ExecutingObject.Vehicle.StrafeInput = 0.5Space.Host.ExecutingObject.Vehicle.DepthInput = 0.5Space.Host.ExecutingObject.Vehicle.IgnoreUserInput = trueDriverAvatar = Space.Host.ExecutingObject.Vehicle.DriverVehicleGameObject = Space.Host.ExecutingObject.Vehicle.GameObject