Mouse clicking generates alot of traffic, so says the trigger editor. Is the amount of repetitive clicking done by 4 people going to lag a map into the ground?
How can I make a player create a unit via mouse click , Only in an approved region. and only if they have x resource available?
The unit has to be created under the mouse, I was able to create a unit at a point but not under the mouse.
points are just coordinates and there is a function to grab them from the mouse click. Just use your trigger conditions as normal to make sure the point is inside your region and the triggering player has the resources to do so.
Sorry but I did not find your comment to either of my questions helpful.
I have tinkered around and found out how to get information for getting the mouse location and creating a unit mouse location. But I feel this is sloppy and could be created better.
Unit - Create 1 Marine for player 1 at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world), (Mouse Z position clicked in the world))) facing 270.0 degrees (No Options)
I had the issue of condition still for making sure the area the player was trying to click was allowed to spawn a unit.
2 Questions.
Mouse clicking generates alot of traffic, so says the trigger editor. Is the amount of repetitive clicking done by 4 people going to lag a map into the ground?
How can I make a player create a unit via mouse click , Only in an approved region. and only if they have x resource available?
The unit has to be created under the mouse, I was able to create a unit at a point but not under the mouse.
@iMisu: Go
points are just coordinates and there is a function to grab them from the mouse click. Just use your trigger conditions as normal to make sure the point is inside your region and the triggering player has the resources to do so.
Sorry but I did not find your comment to either of my questions helpful.
I have tinkered around and found out how to get information for getting the mouse location and creating a unit mouse location. But I feel this is sloppy and could be created better.
Unit - Create 1 Marine for player 1 at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world), (Mouse Z position clicked in the world))) facing 270.0 degrees (No Options)
I had the issue of condition still for making sure the area the player was trying to click was allowed to spawn a unit.
Dynamically create the trigger for a specific player when it's allowed and then destroy it upon invalidation
Edit: Here's an example of what i mean http://peeeq.de/gui.php?id=3821
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)