SA-MP Forums Archive
creating object - 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: creating object (/showthread.php?tid=620546)



creating object - StR_MaRy - 31.10.2016

hey guys i want to create a ramp in front off my vehicle i just want to know how to ad 5-10 metters in front off my vehicle ? cause now is spawning right in my car :d

Код HTML:
if(newkeys & KEY_FIRE)
	{
	    new vid = GetPlayerVehicleID(playerid);
	    new Float:X, Float:Y, Float:Z;
    	GetVehiclePos(vid, X, Y, Z);
    	CreateDynamicObject(1655, X, Y, Z, 0.00000, 0.00000, 0.00000);
	}



Re: creating object - AbyssMorgan - 31.10.2016

PHP код:
GetPointInFrontOfVehicle3D(vehicleid,&Float:tx,&Float:ty,&Float:tz,Float:radius,&Float:rx=0.0,&Float:rz=0.0); 
https://sampforum.blast.hk/showthread.php?tid=591010