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

Example

function onScriptLoad()
{
	SetDriveBy( true );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Input

Categories: Client functions | Input