Skip to content

Commit

Permalink
IsPlayerDrivingAgainstTraffic
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas7yoshi committed Nov 15, 2023
1 parent cdfdfb5 commit 249179c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
21 changes: 21 additions & 0 deletions PLAYER/IsPlayerDrivingAgainstTraffic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
ns: PLAYER
aliases: ["0xF10B44FD479D69F3"]
---
## _IS_PLAYER_DRIVING_AGAINST_TRAFFIC

```c
// 0xF10B44FD479D69F3 0x1E359CC8
BOOL _IS_PLAYER_DRIVING_AGAINST_TRAFFIC(Player player, int p1);
```
Returns true if the player is in a vehicle and actively moving against traffic (cannot be stationary), otherwise returns false.
Used in "Al Di Napoli" mission for a voiceline.
## Parameters
* **player**: Player ID
* **p1**: Only use is 2, other values do not return true
## Return value
Whether or not the player is actively (moving) driving against traffic
19 changes: 0 additions & 19 deletions PLAYER/N_0xf10b44fd479d69f3.md

This file was deleted.

0 comments on commit 249179c

Please sign in to comment.