View Issue Details

IDProjectCategoryView StatusLast Update
0008532New Feature Requests[All Projects] Generalpublic2017-06-18 20:57
ReporterGrafuAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0008532: [Request] Extend getCameraTarget functionality to return only players
Description

Currently, there is no way to get the real camera target, because if the target enters a vehicle, getCameraTarget returns false. If getCameraTarget returned only the player, we could easily get the vehicle by using getPedOccupiedVehicle. But currently if the vehicle has more than 1 occupant, finding which player the camera belongs to is barely possible.

Additional Information

A bonus parameter would be great ;p

TagsNo tags attached.

Activities

qaisjp

2014-09-12 20:44

administrator   ~~0021999

I swear that getCameraTarget always returned a player in the previous versions, this must have been added recently...

Grafu

2014-09-12 22:35

viewer   ~~0022006

Don't get confused between the server and the client. Both returns different results. http://i.imgur.com/ZUYtdz7.png

arranTuna

2014-09-13 15:39

manager   ~~0022013

Surely if the camera target wasn't the local player but someone else in the car, you'd know because your scripts are what set the target?

Issue History

Date Modified Username Field Change