Hey!
( the game is a RPG type, this concerns a spell/damage logic )
I have a prefab (spell) that i load using playmaker, i then attribute it some values based on the caster, a target, and then send it to that target and make it process.
This works like a charm as if i have one target, knowing i would like to send that gameobject (spell) to multiple target ( enemies or allies ), what would be the best option ?
My first idea is to duplicate the gameobject once the values are set, then send each instance to each target; i was thinking about using a Tag for allies and enemies, a sort of count to know how many allies/enemies alive, duplicate the gameobject that amount of time, and send one instance per Tagged target.
It would be great to have your opinion on what to use to achieve that goal, if there are some specific actions that could help me:)
Thanks in advance,
Nico