Create Object Question - 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: Create Object Question (
/showthread.php?tid=393462)
Create Object Question -
jakejohnsonusa - 18.11.2012
How do I create an object (boombox) that will be created AT A PERSONS FEET, and later that object can be removed?
This will be for my boombox script in my GM.
Re: Create Object Question -
XtremeR - 18.11.2012
On ur boom box CMD write:
pawn Код:
new boombox = createobject(id,X,Y+1,Z); //below player's Feet!
and for removing simply use
DestroyObject(boombox);
hope it helps
Re: Create Object Question -
jakejohnsonusa - 18.11.2012
What would I do so its infront of a player on the ground next to their feet?
And +1 Rep
Re: Create Object Question -
XtremeR - 19.11.2012
new boombox = createobject(id,X+1,Y+1,Z);
just try changing stuff, im not so sure, but i think this one will be a lil ahead to the player's feet ^
Re: Create Object Question -
Vegas. - 19.11.2012
new Float

, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
new boombox = createobject(id,x,y+1,z);
Like this?