Skip to content
Open
Changes from all 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
6 changes: 6 additions & 0 deletions include/Server/Components/NPCs/npcs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ struct INPC : public IExtensible, public IIDProvider

/// Set NPC vehicle rotation with ability to decide whether it needs immediate update or not
virtual void setVehicleRotation(const GTAQuat& rotation, bool immediateUpdate) = 0;

/// Get NPC vehicle position (zero vector when NPC is not in a vehicle)
virtual Vector3 getVehiclePosition() const = 0;

/// Get NPC vehicle rotation (identity quaternion when NPC is not in a vehicle)
virtual GTAQuat getVehicleRotation() const = 0;
};

struct NPCEventHandler
Expand Down