vehicle pos offset Q
#1

okay, so for offsets would it be


float ect
getvehpos(x,y,z);
createobject(....

but can someone give me the offsets for behind a vehicle about +15?

cause i try again and again but i keep getting the xyz mixed up, i even have it ******d to help me but it doesnt! D:
Reply
#2

pawn Код:
#define OBJECT_ID //your object here

new Float:angle,Float:vx,Float:vy,Float:vz;
GetVehiclePos(vehicleid,vx,vy,vz);
GetVehicleZAngle(vehicleid,angle);
CreateObject(OBJECT_ID,vx + (-15 * floatsin(360-angle,degrees)),vy + (-15 * floatcos(360-angle,degrees)),vz,0.0,0.0,angle);
untested, but it should give you a starting point.
Reply
#3

Quote:
Originally Posted by Rachael
Посмотреть сообщение
pawn Код:
#define OBJECT_ID //your object here

new Float:angle,Float:vx,Float:vy,Float:vz;
GetVehiclePos(vehicleid,vx,vy,vz);
GetVehicleZAngle(vehicleid,angle);
CreateObject(OBJECT_ID,vx + (-15 * floatsin(360-angle,degrees)),vy + (-15 * floatcos(360-angle,degrees)),vz,0.0,0.0,angle);
untested, but it should give you a starting point.
thanks alot
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)