SModularVehicle
Index
Functions Index
Properties Index
Functions
ForceSetOwner
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.
ForceActivate
void ForceActivate ()
Force player drive on this vehicle
ForceDeactivate
void ForceDeactivate ()
Force player out of the vehicle.
SuppressTimeout
void SuppressTimeout ()
Disable the vehicle automatic respawn
OverrideOnClick
void OverrideOnClick (Closure onClick)
Add onClick method to this vehicle,onClick have to be a closure.
Properties
VerticalInput
float VerticalInput get
set
Force vertical offset value, it would be added to vertical control and never set to zero.
HorizontalInput
float HorizontalInput get
set
Force horizontal offset value, it would be added to horizontal control and never set to zero.
StrafeInput
float StrafeInput get
set
Force strafe offset value,it would be added to strafe control and never set to zero.
DepthInput
float DepthInput get
set
Force depth offset value, it would be added to depth control and never set to zero.
IgnoreUserInput
bool IgnoreUserInput get
set
If this option is enabled, user input would be ignored until disable this.
Driver
SAvatar Driver get
Get the player avatar component.
GameObject
SGameObject GameObject get
Returns the GameObject of this Vehicle component.
Last updated