Scripting/Squirrel/Functions/Vehicle.Angle: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This instance variable returns vehicle's angle. == Syntax == <pre>string vehicle.Angle();</pre> == Example == <source lang=squirrel> function OnPlayerCommand( player , cmd...") |
No edit summary |
||
Line 20: | Line 20: | ||
=== Notes === | === Notes === | ||
== Related Functions == | == Related Functions == | ||
Revision as of 13:57, 15 August 2016
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 );
}
}
}