Hey, first time posting here (Although apparently I've had an account for 2 years now :s) but an avid reader as of late.
I'm relatively new to map making, so I'm sorry if this problem is painfully obvious. I have spent quite a bit of time trying to figure it this out, but I'm not sure how to do it. I've looked through the forums, but so far my searches for items + variables have come up with little to no results.
First, I'll tell you what it is that I want. I have a spider mine item, and I want to make it so that when a unit walks over to it, it's automatically picked up since it's in a third person view and the mouse is locked for camera scrolling. I'm not sure whether or not you can make it so you can pick up an item automatically or not, but I had a different system in mind. I tried to make it so if a unit died and the unit (seeing as how items are considered units) was a spider mine equipment piece, that it would add +1 to the global spider mine count array for the given player (If that's hard to decipher that's because I don't know how to refer to it in technical lingo >.>) .
Now the problem is, I don't know how to check if the unit is a spider mine or not. I can do the check to see if it's one that's already placed on the field in the editor, but it's also a recurring spawn and the trigger won't affect the ones that spawn afterward. Now if that makes no sense (because I'm terrible at explaining things) then in short, what I want to know is how can I make it so that it checks what unit is involved (whether it already exists or not) instead of what unit is involved that already exists (the one's usually on the 'Value' tab that have coordinates x.x)?
Any help would be great, the way to do this would help a LOT of things in my map, and even simplify things I already have done.
Uhhh, you can just use the Unit Type of Unit function and place that in a condition statement?
But I can't find any relevant sort of condition for it, when I implement something like " (Unit type of Pickup - Mines [104.21, 45.86]) == Value 2" the second value doesn't have any sort of usable commands.
However halfway through typing this I think I found a useful comparison. I'll leave what I put before in case someone is running into the same problem I am >.> "(Unit type of (Triggering unit)) == Pickup - Mines" All along I've been too focused on doing it backwards >.< Gonna test it out and see if it works.
Hey, first time posting here (Although apparently I've had an account for 2 years now :s) but an avid reader as of late.
I'm relatively new to map making, so I'm sorry if this problem is painfully obvious. I have spent quite a bit of time trying to figure it this out, but I'm not sure how to do it. I've looked through the forums, but so far my searches for items + variables have come up with little to no results.
First, I'll tell you what it is that I want. I have a spider mine item, and I want to make it so that when a unit walks over to it, it's automatically picked up since it's in a third person view and the mouse is locked for camera scrolling. I'm not sure whether or not you can make it so you can pick up an item automatically or not, but I had a different system in mind. I tried to make it so if a unit died and the unit (seeing as how items are considered units) was a spider mine equipment piece, that it would add +1 to the global spider mine count array for the given player (If that's hard to decipher that's because I don't know how to refer to it in technical lingo >.>) .
Now the problem is, I don't know how to check if the unit is a spider mine or not. I can do the check to see if it's one that's already placed on the field in the editor, but it's also a recurring spawn and the trigger won't affect the ones that spawn afterward. Now if that makes no sense (because I'm terrible at explaining things) then in short, what I want to know is how can I make it so that it checks what unit is involved (whether it already exists or not) instead of what unit is involved that already exists (the one's usually on the 'Value' tab that have coordinates x.x)?
Any help would be great, the way to do this would help a LOT of things in my map, and even simplify things I already have done.
Cheers, Bored.322
Uhhh, you can just use the Unit Type of Unit function and place that in a condition statement?
But I can't find any relevant sort of condition for it, when I implement something like " (Unit type of Pickup - Mines [104.21, 45.86]) == Value 2" the second value doesn't have any sort of usable commands.
However halfway through typing this I think I found a useful comparison. I'll leave what I put before in case someone is running into the same problem I am >.> "(Unit type of (Triggering unit)) == Pickup - Mines" All along I've been too focused on doing it backwards >.< Gonna test it out and see if it works.
@Captincronic: Go
Does anyone know how to make it so that when my unit steps on top of an item it destroys the item, or picks it up if possible? :(