Setting object question
#1

Ok so I have a boombox command that will place a boombox. When placing it I want it to be at the same level as the players FEET (on the ground)... How should I write this. This is what I have now (which sets it on the player at head level).

pawn Код:
if(strcmp(tmp,"on",true) == 0)
        {
            ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
            new Float:mX, Float:mY, Float:mZ;
            GetPlayerPos(playerid, mX, mY, mZ);
            playerBoombox[playerid] = CreateObject(2103, mX, mY, mZ, -1.5, 0.0, 0.0, 0.0);
            ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Los Santos Radio","Top Teen Radio\nTop Radio\nClassic Hits Radio\nRock Radio\nTop Teen Radio (ALL)\nTop Radio (ALL)\nChristmas Songs\nChristmas Songs (ALL)","Select","Cancel");
        }
Reply


Messages In This Thread
Setting object question - by jakejohnsonusa - 17.11.2012, 19:29
Re: Setting object question - by ReneG - 17.11.2012, 19:30
Re: Setting object question - by jakejohnsonusa - 17.11.2012, 19:33
Re: Setting object question - by jakejohnsonusa - 17.11.2012, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)