29.12.2018, 11:37
Hey!
I made a script to loop through .map file and get all the object's coordinates, then createdynamicobject to use these coordinates. But I have a problem that for the amount of time server is creating these objects, you cannot type anything in chat, it seems freezed.. for aprox 20sec's or less on some maps. I'm thinking about creating a timer but i'm not completely sure how to do it so it would load 1k objects and then wait 2 secs and another 1k or something. Thanks for help in advance. There are usually aprox 5k objects to loop through and create afterwards
I made a script to loop through .map file and get all the object's coordinates, then createdynamicobject to use these coordinates. But I have a problem that for the amount of time server is creating these objects, you cannot type anything in chat, it seems freezed.. for aprox 20sec's or less on some maps. I'm thinking about creating a timer but i'm not completely sure how to do it so it would load 1k objects and then wait 2 secs and another 1k or something. Thanks for help in advance. There are usually aprox 5k objects to loop through and create afterwards