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.
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
Impact Location: Source Unit
Modify Unit
Effect Modification Flags: Owner
Target Impact Unit: Caster
Target Launch Unit: Source
Unit Transfer Unit: Target
What's wrong here?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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.
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?