23.06.2011, 08:04
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
Old command i created a while back, I doubt it works. Every attempt i tried i failed, I hope someone knows this
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);
}