07.02.2010, 01:28
Just found a pretty major bug, if you use DestroyDynamicObject inside OnDynamicObjectMoved, the entire server crashes. I'm avoiding it with this:
But its not a very nice way of avoiding the problem.
Also, (I will have to make sure of this), but I am pretty sure, that if you move an object beyond the streaming distance set for it, it will disappear and not be streamed. Will edit this post once i have confirmed this.
Thanks
pawn Код:
SetTimerEx("DestroyOb",1,0,"i",objectid); //inside OnDynamicObjectMoved
public DestroyOb(objid)
{
DestroyDynamicObject(objid);
return 1;
}
Also, (I will have to make sure of this), but I am pretty sure, that if you move an object beyond the streaming distance set for it, it will disappear and not be streamed. Will edit this post once i have confirmed this.
Thanks