Scripting/Server/NPCs/npc.SetDrivingStyle
DRIVINGSTYLE_STOP_FOR_CARS (0), DRIVINGSTYLE_SLOW_DOWN_FOR_CARS (1), DRIVINGSTYLE_AVOID_CARS (2), DRIVINGSTYLE_PLOUGH_THROUGH (3), DRIVINGSTYLE_STOP_FOR_CARS_IGNORE_LIGHTS (4).
Syntax
npc.SetDrivingStyle(style)Arguments
- any style
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "setdrivingstyle" )
{
// npc is a npc handle (see NPC members)
npc.SetDrivingStyle( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: NPC members
Categories: Server functions | NPC members