i have a question about playing sound.
if i attack a actor or actors, then hit sound play as damaged actor’s shiled equipment(armor)
for example,
if i attack a solider equiping a leather armor, then play sound leather
if i attack a solider equiping a steel armor, then play sound steel
if i make this in not ue4, i will give a enum value to solider
and… i attack that solider find the enum value
switch(eValue)
{
case Steel:
play steel sound
break;
case leather:
play leather sound;
break;
}
but this method is not for ue4,
i think ue4 have a other better method.
how can i do that?