samp-streamer-plugin
samp-streamer-plugin copied to clipboard
AttachDynamicObjectToVehicle
Hey there
I've attached some objects to train trailers which driven by an NPC. If the NPC leaves the streaming distance the objects are dissapearing until the NPC re-enters to it's streaming area.
This is my code, simple
objectid = CreateDynamicObject(3066, x, y, (z - 10.0), 0.0, 0.0, 0.0); AttachDynamicObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
I tried to set the streaming distance to 3000, but if the vehicle is unstreamed for the player I'll found the objects in the air.
Have you tried making the object static (setting the streaming distance to -1.0
)?
A tried to figure it out with float infinity but I also tried -1.0, as you said. The result is the same, but I think it's not streamer fault.
The object stuck at the last streamed position