I'm pretty new to Unreal 4, and I'm trying to make it so when, on this FPS template, when i shoot the object, it turns red, and when the character touches it, it turns green. For whatever reason, the blueprint will only take one hit event, and when I tried making a child class, it inherited everything else, except it overrides the collision so it turns green, but doesn't turn red. The only thing I can faintly visualize is making an if/else structure, but I'm not sure how to go about that in Unreal 4. Could someone please help me find out what I'm doing wrong?
I can’t connect get player character with ==. It says ‘cannot use enum qualiity operators on anything but enums’.
If / Else is called Branch in UE4 and you’re most likely looking for something like this:
edit: in your case I think other returns the actor reference. There’s a bit of inconsistency in the naming conventions here and there.
Do not use enums for this. You want to compare actors (objects - yet another inconsistency ) instead - drag a wire off other and search for ==
I did. It gave me all kinds of ==. I don’t know which one to use.
Make sure you got a check-mark in “Context sensitive” and it will filter irrelevant things out for you.
The one you are looking for is “Equal (Object)”.
There is only one: