View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008532||New Feature Requests||[All Projects] General||public||2014-09-12 20:40||2017-06-18 20:57|
|Summary||0008532: [Request] Extend getCameraTarget functionality to return only players|
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.
A bonus parameter would be great ;p
|Tags||No tags attached.|
I swear that getCameraTarget always returned a player in the previous versions, this must have been added recently...
Don't get confused between the server and the client. Both returns different results. http://i.imgur.com/ZUYtdz7.png
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?