GetVehicleModelInfo
#1

Hi everyone , i'm trying to "input" Angle in "X-Y" but , no result becaue i never made something like this. I want to take the perfect possition , can someone help me please?

Код:
GetVehiclePos(GetPlayerVehicleID(playerid),p[0],p[1],p[2]);
	    GetVehicleZAngle(GetPlayerVehicleID(playerid),p[3]);
	    GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_PETROLCAP, X, Y, Z);
	    SetPlayerCheckpoint(playerid,p[0]+X,p[1]+Y,p[2]+Z,3.0);

		p[0] += (floatsin(-p[3], degrees));
		p[1] += (floatcos(-p[3], degrees));
	    
	    testpick = CreatePickup(1318,23,p[0]+X,p[1]+Y,p[2]+Z,-1);
I want to get the perfect possition of my "petrolcap" even if i change my car angle.
Reply


Messages In This Thread
GetVehicleModelInfo - by Ph0eniX - 05.08.2016, 15:15
Re: GetVehicleModelInfo - by Stinged - 05.08.2016, 15:59
Re: GetVehicleModelInfo - by Crayder - 05.08.2016, 16:13
Re: GetVehicleModelInfo - by Ph0eniX - 05.08.2016, 16:19
Re: GetVehicleModelInfo - by AbyssMorgan - 05.08.2016, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)