setting object rot
#6

I'm trying to make something like this ( see attachment)

the arrow is a object ( ID: 1318 )

So if i can't set object's rotation if it's attached, then i will have to destroy, create, attach and like that all the time. (under 1 sec timer)

pawn Код:
if(GetPVarInt(playerid, "GPS") > 0)
        {
               DestroyObject(GPS_OBJ);
               GPS_OBJ = CreateObject( 1318, 0, 0, 0, 0, 0, 0);

               new vehid = GetPlayerVehicleID(playerid);

               AttachObjectToVehicle(GPS_OBJ, vehid, 0.0, 0.0, 1.5, 2680.8572, -1330.0626, 42.8088);


           
        }
But it doesnt work, because it doesnt change arrow's rotation
Reply


Messages In This Thread
setting object rot - by armyoftwo - 17.12.2010, 11:05
Re: setting object rot - by armyoftwo - 18.12.2010, 06:48
Re: setting object rot - by [UG]Scripter - 18.12.2010, 06:53
Re: setting object rot - by armyoftwo - 18.12.2010, 06:54
Re: setting object rot - by Rachael - 18.12.2010, 07:39
Re: setting object rot - by armyoftwo - 18.12.2010, 09:22
Re: setting object rot - by armyoftwo - 18.12.2010, 12:41
Re: setting object rot - by armyoftwo - 19.12.2010, 07:24
Re: setting object rot - by Rachael - 19.12.2010, 07:35
Re: setting object rot - by armyoftwo - 19.12.2010, 08:08

Forum Jump:


Users browsing this thread: 1 Guest(s)