Player aim at a ped
#4

Quote:
Originally Posted by Arbico
Посмотреть сообщение
Can I make it with OnPlayerUpdate, and use GetPlayerTargetActor or not?
Yes but it is might (not sure) cause performance problems as OnPlayerUpdate is called so frequently.
It is recommended under OnPlayerKeyStateChange if that is your use case.

EDIT: Wiki seems to be using OnPlayerUpdate so I now doubt if it is actually better. I don't know honestly.
https://sampwiki.blast.hk/wiki/GetPlayerTargetActor
Reply


Messages In This Thread
Player aim at a ped - by Arbico - 17.07.2017, 13:53
Re: Player aim at a ped - by FailerZ - 17.07.2017, 14:08
Re: Player aim at a ped - by Arbico - 17.07.2017, 15:20
Re: Player aim at a ped - by FailerZ - 17.07.2017, 15:53
Re: Player aim at a ped - by Paulice - 17.07.2017, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)