Scripting/Client/Functions/SetDriveBy
v0.2.4+: the native drive-by (server player.DriveBy). IsDriveBy() = enabled, IsDriveByActive() = the local player is in a car with a gun right now (keep your own aim camera, crosshair and scripted bullets off then).
Syntax
SetDriveBy(bool)IsDriveBy()IsDriveByActive()Arguments
- bool value
Example
function onScriptLoad()
{
SetDriveBy( true );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- BindKey
- UnbindKey
- GetKeyStatus
- ShowMouseCursor
- GetMouseCursorPos
- SetMouseCursorPos
- ToggleCameraMovement
- ToggleMouseMovement
- ToggleWaterShader
- ToggleDynamicShadows
- ToggleBulletHoles
- SetCameraFov
Section: Input
Categories: Client functions | Input