Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
|
Public Member Functions | |
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. | |
![]() | |
override void | Initialise (SScript runtime, object wrapper) |
![]() | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
void | Initialise (SScript runtime, object wrapper) |
Properties | |
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. | |
SAvatar | Driver [get] |
Get the player avatar component. | |
![]() | |
SGameObject | GameObject [get] |
Return the GameObject which component added. | |
![]() | |
override bool | Alive [get] |
Return if the component is alive. | |
![]() | |
T | _wrap [get] |
![]() | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Additional Inherited Members | |
![]() | |
void | Initialise (SScript runtime) |
void SineSpace.Scripting.Components.SModularVehicle.ForceActivate | ( | ) |
Force player drive on this vehicle.
void SineSpace.Scripting.Components.SModularVehicle.ForceDeactivate | ( | ) |
Force player out of the vehicle,.
void SineSpace.Scripting.Components.SModularVehicle.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 SineSpace.Scripting.Components.SModularVehicle.OverrideOnClick | ( | Closure | onClick | ) |
Add onClick method to this vehicle,onClick have to be a closure.
void SineSpace.Scripting.Components.SModularVehicle.SuppressTimeout | ( | ) |
Disable the vehicle automatic respawn.
|
getset |
Force depth offset value, it would be added to depth control and never set to zero.
|
get |
Get the player avatar component.
|
getset |
Force horizontal offset value, it would be added to horizontal control and never set to zero.
|
getset |
If this option is enabled, user input would be ignored until disable this.
|
getset |
Force strafe offset value,it would be added to strafe control and never set to zero.
|
getset |
Force vertical offset value, it would be added to vertical control and never set to zero.