Post mod/code requests in the Mod Requests topic.
Post mod releases in the Mod Showroom.
Read the Modding Rules BEFORE posting!
Free mod hosting from GTANet, simply login with your GTAForums account details
GTANet's modding wiki
[Q] Get player's target object/ped?
Posted 14 January 2009 - 06:44 PM
Do I somehow cycle through all the peds in memory then use IsPlayerTargettingChar ?
Posted 14 January 2009 - 07:00 PM
|QUOTE (Hergonan @ Jan 14 2009, 19:44)|
|Do I somehow cycle through all the peds in memory ....... ?|
I don't think that's possible, or at least not at the moment.
The only possible way I see at the moment is by using
Edited by L0uNGeR, 14 January 2009 - 07:36 PM.
Posted 15 January 2009 - 10:54 AM
For example, start reading from pedoffset and for each ped check if the player is targeting it.
(I didn't check how peds are stored in memory yet, but it shouldn't be that hard to find:P)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users