Trigger actor component
Hi there. To make some objects interactive i decided to use trigger volumes to detect if player is near the object. Currently imagine it like that: object actor has trigger within itself, when character overlaps the trigger, trigger sets corresponding flags so character could interact with the object. Trigger should be actor component, as i understand, so i'll be able to edit trigger properties inside object blueprint(more like prefab object), within Components tab. I need to override trigger's Begin/End overlap function to set corresponding flags, i'm able to do that with ATriggerBox/Volume/etc, but i won't be able to edit it inside blueprint; UShapeComponent has no overlap functions that could be reload. So what would be a solution to this? Maybe there's even a better way to detect if player is near some specified object available? Thanks in advance.
asked Apr 03 '14 at 05:22 PM in C++ Programming
It sounds like you're on the right track. Check out this blueprint tutorial video: https://www.youtube.com/watch?v=_NCtcHXJPjg&list=PLZlv_N0_O1gaG5BW72It4chjhypxIO9ZB&index=8
In it, they're using a trigger volume to enable input when the player gets near a light (so that the player can turn on/off the light). Sounds like a good example of what you're trying to accomplish.
Cheers! - MikeB
answered Apr 03 '14 at 06:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here