XY infront of 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: XY infront of object (
/showthread.php?tid=306931)
XY infront of object - Unknown123 - 28.12.2011
how can i get the X, and Y pos infront of a object? (GetXYInFrontOfObject)
pawn Код:
CreateDynamicObject(19076,x,y,z,0.0,0.0,rz,-1,-1,-1,50.0); //object
CreateDynamicPickup(1264,23,X,Y,Z,-1,-1,-1,50.0); //i want this pickup to spawn "2.0" infront of the object
Re: XY infront of object -
kizla - 28.12.2011
pawn Код:
CreateDynamicObject(19076,x,y,z,0.0,0.0,rz,-1,-1,-1,50.0);
CreateDynamicPickup(1264,23,x+2,y,z,-1,-1,-1,50.0);
Re: XY infront of object - Unknown123 - 28.12.2011
dont work
if i face north is spawn beside it, and if i face west it spawn correctly
south, west, east = spawn wrong