An object facing the players X, Y
#1

Hi, this might be one of the most lame questions though note i hardly ever work with angles, If i have an andromada above me I want it to face the players X, Y and want it to fly as well in that direction:

Diagram


pawn Код:
CMD:fly(playerid, params[])
{
    new Float: pos[3], Float:Height, Float:unKnown[2];

    GetXYInFrontOfPlayer(playerid, pos[0], pos[1], 100.0);
    GetPlayerPos(playerid, unKnown[0], unKnown[1], Height);
   
    gPlayerData[playerid][E_AIRSTRIKE_AROMANDA] = CreateObject(14553,pos[0]-55,pos[1],Height+75,0, 0, 90);
    MoveObject(gPlayerData[playerid][E_AIRSTRIKE_AROMANDA], pos[0]+ 260, pos[1], Height + 80, 29);
}
Old command i created a while back, I doubt it works. Every attempt i tried i failed, I hope someone knows this
Reply


Messages In This Thread
An object facing the players X, Y - by Lorenc_ - 23.06.2011, 08:04
Re: An object facing the players X, Y - by Sascha - 23.06.2011, 09:06
Re: An object facing the players X, Y - by Lorenc_ - 23.06.2011, 09:33
Re: An object facing the players X, Y - by Sasino97 - 23.06.2011, 12:17
Re: An object facing the players X, Y - by Babul - 23.06.2011, 12:26
Re: An object facing the players X, Y - by Sasino97 - 23.06.2011, 12:33
Re: An object facing the players X, Y - by Babul - 23.06.2011, 13:06
Re: An object facing the players X, Y - by PCheriyan007 - 23.06.2011, 13:55
Re: An object facing the players X, Y - by Sascha - 23.06.2011, 18:22
Re: An object facing the players X, Y - by Lorenc_ - 24.06.2011, 05:53

Forum Jump:


Users browsing this thread: 5 Guest(s)