Hello, I am having a little problem with Send event. I know this is super simple thing but when is come to Prefab somehow....send event and global variable is breaking it.
So I setup a bullet with RayCast and telling it what is hitting on Object. Then Check tag if the bullet is hitting random object or Enemy or something else. Then they do "Send Event" on those Specific Game Object to do check on Enemy Health. Those Game object is has Get Owner Global Variables to track in Bullet Send Event.
For example, I have a bullet that hit Enemy. But I already Prefab both Bullet and Enemy. Also Enemy Has Get Owner Global Variable so I can Send event from Bullet to Enemy Health to subtract health. It does work ~! But If i have two or three Enemy Prefab sitting in the game with Same Get Owner Global Variables, the bullet is hitting only the first Enemy effecting on Enemy Health, Not second and third Prefab enemy Enemy Health.
So i wonder do i need to set up 5 or 10 different Enemy with different Variable to have combat system? Is there better way? I also try using BroadCast all and it effecting to all Enemy Prefab Health system. I dont know how to setup multiple prefrab.
Please Help thanks