Scripting/Squirrel/Functions/Vehicle.Angle
This wiki is using an old backup from 2020
Some information may be old/missing
This instance variable returns vehicle's angle.
Syntax
string vehicle.Angle();
Example
function OnPlayerCommand( player , cmd , text )
{
if ( cmd == "vAngle" ) {
else if ( !player.Vehicle ) MessagePlayer("You are not in a vehicle.", player );
else {
MessagePlayer( " Your vehicle angle is: " + player.Vehicle.Angle(), player );
}
}
}