that is the question
#1

hello, is it possible to check if the players are close to a certain area of ​​the vehicle? example (wheels, bonnet and other parts) will the one include for this?
Reply
#2

IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z);

Will do it.
Reply
#3

Quote:
Originally Posted by RxErT
Посмотреть сообщение
IsPlayerInRangeOfPoint(playerid, Float:range, Float, Float:y, Float:z);

Will do it.
no, that does not fit my case.
Reply
#4

It'd take some calculations, but GetVehiclePos then GetVehicleZAngle and IsPlayerInRangeOfPoint GetPlayerFacingAngle could do it if you keep trying in game to see in which point is the player standing according to the position and facing point of the vehicle. (That's how i'd do it)
Reply
#5

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
It'd take some calculations, but GetVehiclePos then GetVehicleZAngle and IsPlayerInRangeOfPoint GetPlayerFacingAngle could do it if you keep trying in game to see in which point is the player standing according to the position and facing point of the vehicle. (That's how i'd do it)
hm ... your answer is interesting, I do not know this function, I'll try to use it even if it's a lot of work!

~ Thank you for the interaction, and sorry for the ridiculous ****** translation .
Reply
#6

You might want to use one of these.

https://sampforum.blast.hk/showthread.php?tid=486060
https://sampforum.blast.hk/showthread.php?tid=611142
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)