I want to equip a shield to a unit via a behaviour. this works so far - when the item is in the inventar, a behaviour is equiped, setting up the shield. Shield-points are showed, but no shield-icon in the ui (thats good, i dont want it tho).
I added a shield attachement point to the model of the using unit an that worked to - if the unit is attacked, the projectiles hit at the radius of the shild (configured in the shield attachement point), but there is no visual shield. The gameplay works perfect, but there is no visual for the shield.
When I edit the unit-stats in the data-editor and give it shields from the beginning the visual is there... but how can I play the visual for later equiped shields?
I have not created a shield actor for these units. When I give them shields from start on, I dont have do create an extra shield actor - why do I have to create one when adding the shields trough an item?
Ah. Then you ened a custom Shield type actor. The default one is only created on unit birth if it is shield capable. You need one that is created when the behaviour is on like the voodoo shield of tosh from the campaign.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I dublicated the "Shield Impact" actor and changed the creation event - original it checks if a new created unit is shield capable (validator -> shield max>0) I changed this to a custom validator that checks if a unit has the attribute "heroic".
The unit still needs a shield attachement-point.
Hi,
I want to equip a shield to a unit via a behaviour. this works so far - when the item is in the inventar, a behaviour is equiped, setting up the shield. Shield-points are showed, but no shield-icon in the ui (thats good, i dont want it tho). I added a shield attachement point to the model of the using unit an that worked to - if the unit is attacked, the projectiles hit at the radius of the shild (configured in the shield attachement point), but there is no visual shield. The gameplay works perfect, but there is no visual for the shield.
When I edit the unit-stats in the data-editor and give it shields from the beginning the visual is there... but how can I play the visual for later equiped shields?
How are the events for your shield Model actor set up?
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
I have not created a shield actor for these units. When I give them shields from start on, I dont have do create an extra shield actor - why do I have to create one when adding the shields trough an item?
Ah. Then you ened a custom Shield type actor. The default one is only created on unit birth if it is shield capable. You need one that is created when the behaviour is on like the voodoo shield of tosh from the campaign.
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
Okay that worked. Thank you.
So if anyone is interested in the solution:
I dublicated the "Shield Impact" actor and changed the creation event - original it checks if a new created unit is shield capable (validator -> shield max>0) I changed this to a custom validator that checks if a unit has the attribute "heroic". The unit still needs a shield attachement-point.
Could have also just used Behavior.*.On
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