Objects not streaming!
#1

For some reason my objects only load when you are like standing ontop of it (It despawns when distance is more than about 3m).. I've tried to define the DD and SD BEFORE the streamer include.. This didn't work!

An example of my object string:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
I already tried the following:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000, 0, 0, 400); //0, 0, 400 = VW, Int, Distance
Please help me out here!

It has around 18000 objects..
Reply
#2

Anyone?
Reply
#3

OnGameModeInit > Streamer_SetVisibleItems(0,3000)

Streamer 2.8+
Reply
#4

Quote:
Originally Posted by IvanElistratov
Посмотреть сообщение
OnGameModeInit > Streamer_SetVisibleItems(0,3000)

Streamer 2.8+
This still does not work
Reply
#5

Quote:
Originally Posted by NLDBrian
Посмотреть сообщение
For some reason my objects only load when you are like standing ontop of it (It despawns when distance is more than about 3m).. I've tried to define the DD and SD BEFORE the streamer include.. This didn't work!

An example of my object string:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
I already tried the following:
pawn Код:
CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000, 0, 0, 400); //0, 0, 400 = VW, Int, Distance
Please help me out here!

It has around 18000 objects..
I'm not sure, but try:

Код:
new objectid = CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 400.0);
Reply
#6

Quote:
Originally Posted by kingmk
Посмотреть сообщение
I'm not sure, but try:

Код:
new objectid = CreateDynamicObject(8652,1232.19995117,-1432.09997559,13.39999962,0.00000000,0.00000000,89.00000000);
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 400.0);
so find and replace all CreateDynamicObject with: new objectid = CreateDynamicObject?
Reply
#7

Without 'new'.

You can also put OnGameModeInit:
Код:
Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 800);
Reply
#8

It's still not working I just checked I have around 15000 objects in the script!
If anyone wants to see what exactly is going on, hes free to join!

I just can't get it fixed
Reply
#9

Quote:
Originally Posted by NLDBrian
Посмотреть сообщение
so find and replace all CreateDynamicObject with: new objectid = CreateDynamicObject?
No just create a fucntion like this.

Код:
forward Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0);
public Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0)
{
    new objectid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 300.0);
    return objectid;
}
Then replace CreateDynamicObject to Ex_CreateDynamicObject and test if this worked out.

or just #define CreateDynamicObject Ex_CreateDynamicObject
Reply
#10

Quote:
Originally Posted by kingmk
Посмотреть сообщение
No just create a fucntion like this.

Код:
forward Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0);
public Ex_CreateDynamicObject(modelid, Float: x, Float: y, Float: z, Float: rx, Float: ry, Float: rz, worldid = -1, interiorid = -1, playerid = -1, Float: streamdistance = 300.0)
{
    new objectid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
    Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, 300.0);
    return objectid;
}
Then replace CreateDynamicObject to Ex_CreateDynamicObject and test if this worked out.

or just #define CreateDynamicObject Ex_CreateDynamicObject
This returns:
Код:
error 059: function argument may not have a default value (variable "worldid")
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)