that is the question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: that is the question (
/showthread.php?tid=652385)
that is the question -
Izaque1998 - 09.04.2018
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?
Re: that is the question -
RxErT - 09.04.2018
IsPlayerInRangeOfPoint(playerid, Float:range, Float
, Float:y, Float:z);
Will do it.
Re: that is the question -
Izaque1998 - 09.04.2018
Quote:
Originally Posted by RxErT
IsPlayerInRangeOfPoint(playerid, Float:range, Float , Float:y, Float:z);
Will do it.
|
no, that does not fit my case.
Re: that is the question -
RogueDrifter - 09.04.2018
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)
Re: that is the question -
Izaque1998 - 10.04.2018
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 .
Re: that is the question -
Fairuz - 10.04.2018
You might want to use one of these.
https://sampforum.blast.hk/showthread.php?tid=486060
https://sampforum.blast.hk/showthread.php?tid=611142