Anyway so it doesn't work, Mcrystal4 is the local variable (unit), and Mcrystal4(point) is a point on the map. Now I want the mineral crystal unit to appear on that point when i type "aa" as long as there isn't a mineral crystal there already.
So how did it go? I typed "aa" in game, it created the unit fine in the right point, but if I keep typing "aa" it keeps creating more of them there, even if I didn't collect the mineral there.
I shouldn't create a mineral if the last created mineral is still there.
What am I doing wrong?
(keep in mind that the unit is the collectible minerals from the campaign, not the static ones mined by workers).
Hey so I'm having a bit of trigger trouble.
The event is just for testing, ignore it.
Anyway so it doesn't work, Mcrystal4 is the local variable (unit), and Mcrystal4(point) is a point on the map. Now I want the mineral crystal unit to appear on that point when i type "aa" as long as there isn't a mineral crystal there already.
So how did it go? I typed "aa" in game, it created the unit fine in the right point, but if I keep typing "aa" it keeps creating more of them there, even if I didn't collect the mineral there.
I shouldn't create a mineral if the last created mineral is still there.
What am I doing wrong?
(keep in mind that the unit is the collectible minerals from the campaign, not the static ones mined by workers).
Mcrystal4 is a local variable. it resets to default every time the trigger starts
make it in to a global variable.
Looks like a learned something new today.
Thank you for the fast and good response, worked like a charm.
-38dedo