My idea is to create a component:
Definitions:
- Token. the object that can be carried and activates teh platform
- This component will have all the interactios (Should I add this component to the Pawn or to the “token” and invert the logic? mmm)
- This component may grab (or be grabbed by) another actor by adding a AActor* pointer
- This grabed actor is the “token” that will be placed over the platform.
- Pawn can “Carry” this actor by adding a Property to the Pawn pointing to this “token”
- if Pawn enters Platform and Carry is pointing to a valid “token” then this token will become ActorThatOpens in OpenDoor Component.
***valid token may need to be an additional property of potential tokens. (???)
and Pawn can release teh token by pointing to null (careful with null pointers) - Because ActorThatOpens is collisioning with platform, then door shouldn’t close… I hope.
more to come…