Well I have been working no this map basically has this 1 structure in the middle of the map owned my neutral. Its a 2v2 map and all I want it to do is when a player walking near it it becomes their building but when they leave its not their building. Basically whoever gets their it their but if someone else gets their and has a unit near it the building is their is their a way to do this?
I believe you can just give it the Tower Capture (Xel'Naga Towers) ability. Failing that I would put a region around it and detect when a unit enters or leaves that region give it when they enter and take it when they leave (with triggers). Feel free to contact me here or pm me if you don't know how to do ether of those.
Hope that helps
Edit: Apparently you can't do it with the Towers ability (that only gives vision not actual control) I will post a test map with a system for this using just data to see what I did just go to the data editor and under the data source drop bar select the maps path (something like C:/...... /Capture Test Map). There are 2 effects and 2 behaviors. You can recreate them in your map or just copy paste them.
Well I have been working no this map basically has this 1 structure in the middle of the map owned my neutral. Its a 2v2 map and all I want it to do is when a player walking near it it becomes their building but when they leave its not their building. Basically whoever gets their it their but if someone else gets their and has a unit near it the building is their is their a way to do this?
Bump
Bumping Again...
Bumping for a third time :/
I believe you can just give it the Tower Capture (Xel'Naga Towers) ability. Failing that I would put a region around it and detect when a unit enters or leaves that region give it when they enter and take it when they leave (with triggers). Feel free to contact me here or pm me if you don't know how to do ether of those.
Hope that helps
Edit: Apparently you can't do it with the Towers ability (that only gives vision not actual control) I will post a test map with a system for this using just data to see what I did just go to the data editor and under the data source drop bar select the maps path (something like C:/...... /Capture Test Map). There are 2 effects and 2 behaviors. You can recreate them in your map or just copy paste them.