I wanna to make a kind of strategy game, but I stuck at one point because I can't control the units separately.
For example, I have four unit and one of these ones have to go to cut a tree. In my game I can not do the "select one unit and send to the tree" method! I just select the tree and marking as cutting and after one (or more) unit automatically depart in direction of the tree and will cut it. Of course not the cutting the point, only the control over my units.
So, the main problem that all worker units start do it instead of only one. How should I solve this problem? Something about the UID/IID? I don't know...
Each units have a unique IID number. Somehow I should use it, but I don't know how should I give an order/action to only one unit.
- A unit with IID 4 (or a random units) start to cut the tree meanwhile the others stay calm.
Please help me I really need the solve it's an essential step! Or any tip/idea?
Thank you all!