Trailer position for player -
bigboy81 - 23.06.2015
How i can detect if is player behind trailer, behind door..
Re : Trailer position for player -
KillerDVX - 23.06.2015
Behind door ? O_o
Y'a kidding buddy ? :')
Re: Trailer position for player -
Shetch - 23.06.2015
How do you expect anyone to help you if you don't provide any code that we all can work from? What trailer? What door? What are you talking about? Do you want to detect if a player is NEAR a door, or actually BEHIND it? Expand on your help requests or don't post at all.
Re: Re : Trailer position for player -
mamorunl - 23.06.2015
Quote:
Originally Posted by KillerDVX
Behind door ? O_o
Y'a kidding buddy ? :')
|
Stop using weird styling and just answer the question.
@OP:
Since the vehicle is not really streamed in, you won't get superaccurate results. However.. the trailers are all the same size, so if you can figure the size out, you can check it's position and angle and see if the player is at POS + (or - depending on the angle.. you can use GetXYInFrontOfPlayer for this I believe) SIZE_OF_VEHICLE. If this is close enough for you to the door, then do your stuff
Re: Trailer position for player -
Threshold - 23.06.2015
GetVehicleModelInfo will allow you to get a vehicle's size.
Re: Re : Trailer position for player -
bigboy81 - 23.06.2015
I use trailer id 591
I making something and i want to detect if is player behind trailer, btw if is player near door of trailer and do something.
Stop laughing, everything is possible to do !
Re : Trailer position for player -
KillerDVX - 23.06.2015
I'm not laughing at you, you didn't show any codes,
We aren't in your minde to figure out what are you planing to do.
Re: Re : Trailer position for player -
bigboy81 - 23.06.2015
Man what code, i here searching code from you, i don't have any example.
Re: Trailer position for player -
Ritzy2K - 23.06.2015
Okay i understood him. and btw KillerDVX stop with your horse shit.
He wants to check if a player is standing behind a trailer at its back (for some rp purposes most probably) m not sure how to check but i got his query
Re: Trailer position for player -
rappy93 - 23.06.2015
I think you can use this.
https://sampforum.blast.hk/showthread.php?tid=486060
Look for a function named :
pawn Код:
// Get the position of the vehicle's boot.
stock GetVehicleBoot(vehicleid, &Float:x, &Float:y, &Float:z);