Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TaskVehicleDriveToCoordLongrange.md #942

Merged
merged 5 commits into from
Aug 7, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions TASK/TaskVehicleDriveToCoordLongrange.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,34 @@ void TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE(Ped ped, Vehicle vehicle, float x, fl

You can let your character drive to the destination at the speed and driving style you set. You can use map marks to set the destination.

```
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
enum eDriveBehaviorFlags {
DF_StopForCars = 1,
DF_StopForPeds = 2,
DF_SwerveAroundAllCars = 4,
DF_SteerAroundStationaryCars = 8,
DF_SteerAroundPeds = 16,
DF_SteerAroundObjects = 32,
DF_DontSteerAroundPlayerPed = 64,
DF_StopAtLights = 128,
DF_GoOffRoadWhenAvoiding = 256,
DF_DriveIntoOncomingTraffic = 512,
DF_DriveInReverse = 1024,
DF_UseWanderFallbackInsteadOfStraightLine = 2048,
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
DF_AvoidRestrictedAreas = 4096,
DF_PreventBackgroundPathfinding = 8192, // **These only work on MISSION_CRUISE**
DF_AdjustCruiseSpeedBasedOnRoadSpeed = 16384,
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
DF_UseShortCutLinks = 262144,
DF_ChangeLanesAroundObstructions = 524288,
DF_UseSwitchedOffNodes = 2097152, //cruise tasks ignore this anyway--only used for goto's
DF_PreferNavmeshRoute = 4194304, //if you're going to be primarily driving off road
DF_PlaneTaxiMode = 8388608, // Only works for planes using MISSION_GOTO, will cause them to drive along the ground instead of fly
DF_ForceStraightLine = 16777216,
DF_UseStringPullingAtJunctions = 33554432,
DF_AvoidHighways = 536870912,
DF_ForceJoinInRoadDirection = 1073741824
}
```
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
## Parameters
* **ped**: Ped id for the task.
* **vehicle**: Vehicle entity id for the task.
Expand Down
Loading