I have a game where there are 40 'crate' items scattered around. The goal is for the players to search through them all finding the few that contain energy.
So just like Diablo crates, you click them your hero goes over and destroys it, sometimes loot appearing.
How can I do this? My unit is ranged so I want to walk up to melee range, ideally without attacking?
Add a behaviour to each of them. Add a "create unit effect" to damage responce (fatal) with a chance of whatever. Have the unit created be your energy thing.
I have a game where there are 40 'crate' items scattered around. The goal is for the players to search through them all finding the few that contain energy.
So just like Diablo crates, you click them your hero goes over and destroys it, sometimes loot appearing.
How can I do this? My unit is ranged so I want to walk up to melee range, ideally without attacking?
Bump!
Make the items like destructibles (eg destructibles rocks), and then add the loot via trigger.
Add a behaviour to each of them. Add a "create unit effect" to damage responce (fatal) with a chance of whatever. Have the unit created be your energy thing.
Just make them only able to be hit by a hidden weapon that is melee and that your normal weapon cannot target them.
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