I have items in my map which can be used to place buildings (Like the Tiny Barracks or whatever in WC3). Basically for those who don't know what I'm talking about, the player will get an item with one charge. The item is of the "Target" type. They will click it and then click a location of the map. The item will then disappear and a building will appear in the place they clicked. All of that is working fine except this:
1) The player can click anywhere... trees, enemies, other allied units... doesn't matter. The building can even be placed on another hero and prevent them from moving. Obviously I don't want that to happen. So I have tried making the target filter for my item Exclude: Ally, Player, Self, Neutral, Enemy. When I do that I can't place the building at all. I can't place it in an open area or even on other units as before. In the effect portion it is set to a "Target Point" but apparently it isn't acting like one. Any ideas why this is happening?
2) This issue is less important, but I also want the player to see where the building will be placed. For example, if you are playing a melee game and you tell your SCV to build a supply depot, you can see a placement model of the depot before you place it. In my map all the player will see is their cursor. Any help on how to rectify this would also be appreciated, but again, the other problem is more pressing.
Bump?
I noticed that when I try to place one in game it gives me the "Must target unit" error which doesn't make sense to me because the effect is set to "Target Point"
I'm not 100% sure about what you mean there, so I've included a screenshot of the components (Created unit's actor, targeting item, the effect of that item)
Sorry about that. I wasn't really sure what was important information. I was able to figure it out with the "Ability" items instead of the "Target" items. Thanks for the suggestion.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have items in my map which can be used to place buildings (Like the Tiny Barracks or whatever in WC3). Basically for those who don't know what I'm talking about, the player will get an item with one charge. The item is of the "Target" type. They will click it and then click a location of the map. The item will then disappear and a building will appear in the place they clicked. All of that is working fine except this:
1) The player can click anywhere... trees, enemies, other allied units... doesn't matter. The building can even be placed on another hero and prevent them from moving. Obviously I don't want that to happen. So I have tried making the target filter for my item Exclude: Ally, Player, Self, Neutral, Enemy. When I do that I can't place the building at all. I can't place it in an open area or even on other units as before. In the effect portion it is set to a "Target Point" but apparently it isn't acting like one. Any ideas why this is happening?
2) This issue is less important, but I also want the player to see where the building will be placed. For example, if you are playing a melee game and you tell your SCV to build a supply depot, you can see a placement model of the depot before you place it. In my map all the player will see is their cursor. Any help on how to rectify this would also be appreciated, but again, the other problem is more pressing.
Bump? I noticed that when I try to place one in game it gives me the "Must target unit" error which doesn't make sense to me because the effect is set to "Target Point"
Bumpski bumpski
You given it a placement model under the Unit actor? The unit a placement footprint? Put it under the ability for the placeholder and place unit?
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
@DrSuperEvil: Go
I'm not 100% sure about what you mean there, so I've included a screenshot of the components (Created unit's actor, targeting item, the effect of that item)
And you have to give a screenshot not showing the advanced fields?
Use an Ability type item that uses an ability of the Effect - Target type?
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
@DrSuperEvil: Go
Sorry about that. I wasn't really sure what was important information. I was able to figure it out with the "Ability" items instead of the "Target" items. Thanks for the suggestion.