aimdata - getaimposition direction

Статус
В этой теме нельзя размещать новые ответы.

ultramishima

Новичок
Автор темы
7
0
hey i'd like to ask some help please... i want to be able to see where other players are aiming / looking at.. by using the get aim data sync... idk how to .. i tried to but didnt work..

0BBE: samp store_player $PLAYER_CHAR aim_data 1@ // Aimdata
0AC8: 1@ = 31 // allocate mem the size of stAimData , i tested 32 already.. didnt work too
0C0C: 2@ = struct 1@ offset 13 size 4
0C0C: 3@ = struct 1@ offset 17 size 4
0C0C: 4@ = struct 1@ offset 21 size 4

its suppose to get 2 3 4 as coords.. i tested it didnt work...

i just want to draw lines on players aiming directions.. please help thanks
 

itsLegend

Фонд борьбы за жуков 🐞
Администратор
2,696
1,469
Instead the $PLAYER_CHAR need player's id.
 

ultramishima

Новичок
Автор темы
7
0
i tried it like this:
0B2B: samp 6@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0BBE: samp store_player 6@ aim_data 1@ // Aim Sync
0AC8: 1@ = 31 // allocate mem the size of stAimData
0C0C: 2@ = struct 1@ offset 13 size 4
0C0C: 3@ = struct 1@ offset 17 size 4
0C0C: 4@ = struct 1@ offset 21 size 4

04D5: create_corona_at 2@ 3@ 4@ radius 1.0 type 0 flare 0 RGB 255 0 0

but still no result.. (im testing it like this then if it works i will make a for cycle and make it for other players and instead of the corona i will draw lines.


I've been trying to do this for so long.. if you know how to do it or if you have a working snippet.. please.. thanks
 
Статус
В этой теме нельзя размещать новые ответы.