20.11.2011, 15:58
If a vehicle blows up & respawns outside player's streaming radius, the object attached on vehicles stay where the vehicle was before.
You can workaround this problem with a simple onvehiclespawn fix like this:
You can workaround this problem with a simple onvehiclespawn fix like this:
Quote:
OnVehicleSpawn(VehicleID) { for (new L = 0; L < PVS_MAX_VEHICLE_ATTACHOBJS; L++) { if (pvs_Vehicles[VehicleID][PEV_ATTACHOBJS][L] != INVALID_OBJECT_ID) { // has a attached object in this slot SetObjectPos(pvs_Vehicles[VehicleID][PEV_ATTACHOBJS][L], 0.0, 0.0, -100.0); } } } |