04.01.2014, 15:17
I tried this:
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?
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);
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?