Sinespace Client
2023.2.17543
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. More... | |
void | ForceActivate () |
Force player drive on this vehicle More... | |
void | ForceDeactivate () |
Force player out of the vehicle, More... | |
void | SuppressTimeout () |
Disable the vehicle automatic respawn More... | |
void | OverrideOnClick (Closure onClick) |
Add onClick method to this vehicle,onClick have to be a closure. More... | |
Properties | |
float | VerticalInput [get, set] |
Force vertical offset value, it would be added to vertical control and never set to zero. More... | |
float | HorizontalInput [get, set] |
Force horizontal offset value, it would be added to horizontal control and never set to zero. More... | |
float | StrafeInput [get, set] |
Force strafe offset value,it would be added to strafe control and never set to zero. More... | |
float | DepthInput [get, set] |
Force depth offset value, it would be added to depth control and never set to zero. More... | |
bool | IgnoreUserInput [get, set] |
If this option is enabled, user input would be ignored until disable this. More... | |
SAvatar | Driver [get] |
Get the player avatar component. More... | |
Properties inherited from ScriptClassComponent< ModularVehicleBaseInternal > | |
SGameObject | GameObject [get] |
Return the GameObject which component added. More... | |
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.