DynamicObjects dissapear after some time?
#1

-- DELETED --
Reply
#2

Are you sure you're using AttachDynamicObjectToVehicle? Because I don't think so.
Reply
#3

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Are you sure you're using AttachDynamicObjectToVehicle? Because I don't think so.
Yes I am. This is the code:

Код:
vehicleVariables[vehicleid][vehicleOsl] = CreateDynamicObject(vehicleVariables[vehicleid][vehicleSl], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
        switch(GetVehicleModel(vehicleid))
        {
            case 602: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.35490, 0.23560,   0.00000, 0.00000, 0.00000);
            case 429: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.23490, 0.26560,   0.00000, 0.00000, 0.00000);
            case 426: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.56490, 0.21560,   0.00000, 0.00000, 0.00000);
            case 402: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.53090, 0.23260,   0.00000, 0.00000, 0.00000);
            case 541: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.00390, 0.28360,   0.00000, 0.00000, 0.00000);
            case 415: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.19090, 0.21560,   0.00000, 0.00000, 0.00000);
            case 587: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.36090, 0.26660,   0.00000, 0.00000, 0.00000);
            case 411: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.44190, 0.31500,   0.00000, 0.00000, 0.00000);
            case 475: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.47990, 0.18160,   0.00000, 0.00000, 0.00000);
            case 480: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.20790, 0.10660,   0.00000, 0.00000, 0.00000);
            case 533: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.30990, 0.24260,   0.00000, 0.00000, 0.00000);
            case 555: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.22490, 0.05560,   0.00000, 0.00000, 0.00000);
            case 536: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.81190, 0.11560,   0.00000, 0.00000, 0.00000);
            case 575: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.45490, 0.30460,   0.00000, 0.00000, 0.00000);
            case 534: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.49690, 0.11560,   0.00000, 0.00000, 0.00000);
            case 567: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.64390, 0.05260,   0.00000, 0.00000, 0.00000);
            case 535: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.39190, 0.38860,   0.00000, 0.00000, 0.00000);
            case 566: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.72790, 0.22060,   0.00000, 0.00000, 0.00000);
            case 412: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -3.27390, 0.07360,   0.00000, 0.00000, 0.00000);
            case 579: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleSl], vehicleid, -0.01370, -2.34990, 1.10260,   0.00000, 0.00000, 0.00000);
            case 400: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -1.92990, 0.70360,   0.00000, 0.00000, 0.00000);
            case 500: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -1.44690, 0.82960,   0.00000, 0.00000, 0.00000);
            case 445: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.58090, 0.19960,   0.00000, 0.00000, 0.00000);
            case 518: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.53890, 0.07360,   0.00000, 0.00000, 0.00000);
            case 527: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.05590, 0.30460,   0.00000, 0.00000, 0.00000);
            case 542: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.66490, 0.26260,   0.00000, 0.00000, 0.00000);
            case 585: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.76990, 0.40960,   0.00000, 0.00000, 0.00000);
            case 492: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.60190, 0.26260,   0.00000, 0.00000, 0.00000);
            case 474: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.49690, 0.22060,   0.00000, 0.00000, 0.00000);
            case 517: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.39190, 0.19960,   0.00000, 0.00000, 0.00000);
            case 405: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.43390, 0.19960,   0.00000, 0.00000, 0.00000);
            case 494: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.70690, 0.22060,   0.00000, 0.00000, 0.00000);
            case 502: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.51790, 0.21060,   0.00000, 0.00000, 0.00000);
            case 503: AttachDynamicObjectToVehicle(vehicleVariables[vehicleid][vehicleOsl], vehicleid, -0.01370, -2.66490, 0.21060,   0.00000, 0.00000, 0.00000);
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)