Attaching other vehicles to the packer truck
#5

I tried this:
pawn Код:
new Object = CreateDynamicObject(562, x, y, z, 0.0, 0.0, rot);

    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, Object, E_STREAMER_DRAW_DISTANCE, 300.0);
to spawn an Elegy as object.

Somehow it works but I cannot see the Elegy object.
But it's there because I can bump into it and jump on top of it.
I just can't see it.

The same code is used to spawn a speedcamera object and that works perfectly.
Also, the draw distance can't be the problem, as the second line sets the drawdistance of the object to 300 meters (it works for my speedcams).

How to spawn a vehicle as an object, so it can be attached to the packer truck?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)