open.mp forum
[Pawn] [Solved] Dynamic object stream distance - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] [Solved] Dynamic object stream distance (/showthread.php?tid=1978)



[Solved] Dynamic object stream distance - Radical - 2021-05-04

SOLUTION:

(2021-05-05, 03:53 PM)AbyssMorgan Wrote: I recommend this:

Code:
public OnPlayerConnect(playerid){



Streamer_ToggleIdleUpdate(playerid,1);



return 1;

}

Can solve more problems with streaming.







Code:
new objid =?CreateDynamicObject(4002, -1474.1728, 918.9337, 49.2299, 0.0, 0.0, 90.0, -1, -1, -1, 700.0, 700.0, -1, 1);

SetDynamicObjectMaterial(objid, ...);



I changed the stream_distance and draw_distance of this object to 700.0, but it is still not appear from distant points.



Also, if my distance to this object is 100.0, It still not appear,?I have to go to this object more.



I removed the original building and rebuilt it, but added some materials to it.



What is the problem?



Edit:

Solved.



Solution:



Code:
public OnPlayerSpawn(playerid) {

? ? Streamer_Update(playerid);



RE: Dynamic object stream distance - AbyssMorgan - 2021-05-05

I recommend this:

Code:
public OnPlayerConnect(playerid){

    

    Streamer_ToggleIdleUpdate(playerid,1);

    

    return 1;

}

Can solve more problems with streaming.


RE: Dynamic object stream distance - Radical - 2021-05-06

(2021-05-05, 03:53 PM)AbyssMorgan Wrote: I recommend this:

Code:
public OnPlayerConnect(playerid){



Streamer_ToggleIdleUpdate(playerid,1);



return 1;

}

Can solve more problems with streaming.



Thanks!