- Joined
- Aug 15, 2008
- Messages
- 448
Hello!! I'm making a modern warfare-futuristic map and I'm trying to make infantry unit garrison in neutral buildings, capturing them and getting a good defence positions (for now I've made bunkers and artillery positions), and then return the structures to neutral-passive when they leave it, so they can be recaptured by other players. The "entering" trigger is ok, but I can't make the buildings neutral again when infantry leave them, so any other player who comes to the building (empty) cannot take it because it is mine!!!
Here's the functioning trigger:
Thanks in advance =D.
Check this link if you want to know more on my map: http://www.hiveworkshop.com/forums/f256/need-some-help-my-modern-warfare-futuristic-map-battlemasters-blazing-river-95205/
P.S.: is there any way to make maps with more mb? That's because my map is 4.5mb and Warcraft is already annoying me because I can't use big maps on LAN or online...
Here's the functioning trigger:
-
Capture bunker
-
Events
- Unit receives an order which target is an object
-
Conditions
-
And - All (conditions) are true
- (issued order) non equal to (order(attack))
- (owner of (target unit of issued order)) equal to neutral-passive
- (unit-type of (target unit of issued order)) equal to Bunker
-
And - All (conditions) are true
-
Actions
-
Unit group - pick every units is (units within 84 of (position of (target unit of issued order))) and do (actions)
-
Actions
-
If (all conditions are true) then do (then actions) else do (else actions)
-
If - (conditions)
- (picked unit) equal to (ordered unit)
-
Then - (actions)
- Unit - change ownership of (target unit of issued order) to (owner of (ordered unit)) and change color
- Unit - order (target unit of issued order) to Load (ordered unit)
-
Else - (actions)
- Do nothing
-
If - (conditions)
-
If (all conditions are true) then do (then actions) else do (else actions)
-
Actions
-
Unit group - pick every units is (units within 84 of (position of (target unit of issued order))) and do (actions)
-
Events
Thanks in advance =D.
Check this link if you want to know more on my map: http://www.hiveworkshop.com/forums/f256/need-some-help-my-modern-warfare-futuristic-map-battlemasters-blazing-river-95205/
P.S.: is there any way to make maps with more mb? That's because my map is 4.5mb and Warcraft is already annoying me because I can't use big maps on LAN or online...
Last edited: