Second Actor resets event trigger

Hello,

I have come across an issue and having a tough time coming up with a solution. I have 2 BP actors, one is BP_StoneHedge and the other is BP_StonePlatform. The stoneplatform is used to unlock obstacles. I have an enumeration that indicates what obstacle the platform unlocks (such as unlocking a bridge or unlocking a barrier.) The stonehedge acts as the key and needs to be placed on the platform to activate the stoneplatform. The issue I have came across is I can only have one activated at a time. There will be times where I will need multiple to be activated simultaneously.

Photo of the BP Classes

BP Folder

This BP Logic is inside of the BP_StonePlatform. This logic unlocks the bridge or barrier if the BP_StoneHedge is set

The logic of this BP image checks to see if the Stone Hedge has been set and sets a boolean

On this image the stonehedge position is set to be above the platform once it’s in range.

Here is a vid of what is occurring

What’s the best approach for me to be able to implement multiple BPs of the stone hedge and stone platform?

1 Like

You have some slightly twisted logic here, and problems with the interface. An interface can’t return a type. Well, it can, but then there’s no point in using an interface :slight_smile:

I’ve knocked some code together that will do this for you. This is the interface

This is the platform

Enable actor is just an actor reference, you set it in the level

image

This is the henge

That’s it :rofl: ( we can do the physics later… )

1 Like

:joy: Dang after seeing your solution saying slightly twisted logic is an understatement.

Thank you very much!

1 Like

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