Event not firing for an actor reference stored as variable?

Okay so I’m not sure if this is something super simple or is this actually a bug.

So what I am trying to do is, I have a trigger volume (TV_Tutorial1) in my level. In my level’s blueprint, on BeginPlay I store the volume’s reference to a variable (TVRef). And I wanna do stuff when the BeginOverlap event fired from the volume. But somehow it never fires.

Now, if I do it differently, it fires perfectly fine, so it’s not about collision settings. Stuff I have tried are:

  1. Select the volume, and in my level’s bp, get the event directly from volume. Event fires fine. (Pointed by the green comment in my screenshot)
  2. Assign the volume as the default value for my variable. Event fires fine too.
    Screenshot 2023-10-12 070439

For 2, I thought it might suggests that the variable lost its reference somehow. But I tried things like outputting the variable’s location in event Tick, and it’s outputting its location just fine. So I believe this indicates the variable still holds the volume’s reference?

I know I can definitely get it work the other way but I am just really confused by this. Anyone encountered a similar issue before?

Make sure your other actor which is going to overlap this one has collision set, unless it won’t work

this won’t work since initially the default value of your created variable is null and all event will be bind to that null at that moment.

so when you do a Set, you will have to rebind the events.

Example:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.