Hey guys, so I'm just getting back into mapping and I've run into a bit of a problem here. I'm trying to make it so when you approach a gateway, if player 0 owns it, it becomes yours. I'm accomplishing this (or failing to) using this:
Behavior on the gateway which periodically (1s) does a search to find nearby units. The search has a maximum count of 1 and applies a modify unit effect. So obviously I want the search to occur about the gateway and I want to transfer ownership of the gateway to the approaching unit. Basically all I can get it to do right now is not work at all or give ownership of the unit to the owner of the gateway (opposite of what I want to do).
The Modify Unit effect is bugged in that it can only convert to caster, also has issue with stuff being known as belonging to original player. Use this.
The Modify Unit effect is bugged in that it can only convert to caster, also has issue with stuff being known as belonging to original player. Use this.
Thanks, I was trying to do this as well but I opted for a modify unit ownership change because this seems to have some issues with training units; it checks if the original owner has enough supply to build it instead of the current owner. At any rate, if modify unit is broken then this is the appropriate solution. I have found a workaround for the supply issue as well. Thanks again.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys, so I'm just getting back into mapping and I've run into a bit of a problem here. I'm trying to make it so when you approach a gateway, if player 0 owns it, it becomes yours. I'm accomplishing this (or failing to) using this:
Behavior on the gateway which periodically (1s) does a search to find nearby units. The search has a maximum count of 1 and applies a modify unit effect. So obviously I want the search to occur about the gateway and I want to transfer ownership of the gateway to the approaching unit. Basically all I can get it to do right now is not work at all or give ownership of the unit to the owner of the gateway (opposite of what I want to do).
The values in question are:
Search
Modify Unit
What's wrong here?
The Modify Unit effect is bugged in that it can only convert to caster, also has issue with stuff being known as belonging to original player. Use this.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Thanks, I was trying to do this as well but I opted for a modify unit ownership change because this seems to have some issues with training units; it checks if the original owner has enough supply to build it instead of the current owner. At any rate, if modify unit is broken then this is the appropriate solution. I have found a workaround for the supply issue as well. Thanks again.