what is the node where you add 2 references and get 1 boolen condition from the end ?
the one in that pic
It’s “Is it equal?” node, return true is Other Actor and Player Actor are the same thing, if you use that on numbers like integer or float it will return true if values are the same ((8.32 == 8.32) = true, for example). Heres link to Blueprint API refrence:
https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/Equal_Object/index.html
Because in programming “=” operator is commonly used as value assignment, for equality check “==” is used instead.
So you want to check if “Player Actor” is actor that collided? how do you setting Player Actor?
ok thanks i found it and tried it but still when the two actors overlap nothing happens
Sorry but i didn’t understand " how do you setting player Actor "
The “PlayerActor” variable is a pointer. Pointers aren’t filled with anything at the beginning and they are “NULL” that just means “empty”. You need to fill it by giving it a reference to an actual ingame actor, like your character.
The Type you have chosen is only a type, same to “int” or “float”. It just tells what actors you are able to reference with this variable.
You can fill them by either getting overlap other actors, using line trace or with blueprint interfaces. Most of the important actors, like your character or the controller, can be get by using things like “GetPlayerController” or “GetPlayerCharacter”. The 0 is the right one to chose for the local first player.
Check out my short tutorial for more information on pointers:
For your problem: You are checking if the OtherActor is equal to "NULL". So to nothing. That is in most of the cases false, because Other Actor shouldn't be "NULL" when a real actor overlaps.