EditObject in a vehicle?
#1

EDIT: I've done this -

pawn Код:
CMD:test( playerid, params[] )
{
    new id;
   
        if( sscanf( params, "i", id ) )
            return false;
           
    new Float:p[3];
   
    GetVehiclePos( id, p[0], p[1], p[2]);
   
    vehAttachedObject [ id ] = CreateObject( 18648, p[0],p[1],p[2], 0.0, 0.0, 0.0, 0 );
    //AttachObjectToVehicle( vehAttachedObject [ GetPlayerVehicleID ( playerid ) ], GetPlayerVehicleID( playerid ), 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 );
       
    EditObject( playerid, vehAttachedObject [ id ] );
    return true;
}
and it works nice, problem is, I need it to save and then attach it to a vehicle. Would the object coordinates still be right, or would they be world coordinates? If not, how do I convert them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)