Can someone explain to me how to use object reference correctly?
- Lets say i have an Enemy BP and a fireball BP, both are from different classes
- I want to be able to have a reference to Enemy BP that i can access from fireball BP
- I need the reference so that i can use it to tell Unreal that i want to do things like get enemy location, get enemy rotation, get its velocity, get what its eating, get who the enemy is sleeping with behind fireball’s back, etc. You know… the usual stuff.
The way i thought i could do this is by making a variable EnemyRef in Enemy BP and making it public.
Then using Get EnemyRef in fireball BP and use its pins to do amazing things. But in reality this is what happens:
But i dont know what connection to make to Target so here i am wasting your time asking… HELP ME BROTHER.