- Joined
- Jun 13, 2008
- Messages
- 132
Hi there, I'm making a map and units spawn in different buildings and at that moment they are ordered to move to the objective, I'm using "TempPoint" variables and the custom script to remove the lag of leaks, but the more units are ordered, the more lag, I would like to know if there is a better system to make them move to the objective.
In other games I had a different system to move units, a "TempGroup" was set and cleaned with the script every 0,03 seconds, units that didn't have the "Move to" buff were taken inside and a "TempUnit" randomly selected from the group was chosen and a 5 second buff was applied to that unit and at that moment I ordered it to go to the objective. I would like to know what do you think about it.
Finally, I would like to know how many units a map should have, to balance the respawn timer.
In other games I had a different system to move units, a "TempGroup" was set and cleaned with the script every 0,03 seconds, units that didn't have the "Move to" buff were taken inside and a "TempUnit" randomly selected from the group was chosen and a 5 second buff was applied to that unit and at that moment I ordered it to go to the objective. I would like to know what do you think about it.
Finally, I would like to know how many units a map should have, to balance the respawn timer.