Posts: 554
Threads: 49
Joined: Feb 2007
Hey,
I know this is possible because I have seen it before, but I have no idea how..
So, how to detect if the played is standing front of car's trunk (For RP - loading/unloading stuff)?
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
I really am guessing here, but you could GetVehicleZAngle and then GetPlayerFacingAngle to see if the angle's are matching? Really, a guess.
Posts: 121
Threads: 15
Joined: Nov 2010
Reputation:
0
Use GetVehiclePos.. and make it able to use the trunk command only when the player is "x" meters behind the car.
Posts: 554
Threads: 49
Joined: Feb 2007
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I actually made a function yesterday to get any coordinates using offsets from other coordinates, I shall post it later. One probably exists already (and is undoubtfully better) but I can't seem to find one.
You're welcome ^