Badly needed for tomorrow for thesis defense i just need a tutorial to make a trigger box or source of fire and when i get near it the torch that i pickup and lightup the torch. Here is what i been developing. veil - Google Drive
Quick fix:
- make torch an actor
- in the torch code (use event tick) get player controller → get pawn
- get torch WORLD location (Self → actor → WorldActorLocation)
- get player pawn location get player controller → get pawn → get ActorWorldLocation
- substract both location, and get vector length (this will be distance)
- if distance is Less than some value : player is close to torch
Use trigger way (door tutorial), just instead door make torch lit/unlit (show / hide particle effect and light):
Hello, this is the tutorial I’ve been following but the problem is there is no part 3 that can lightup the the torch. https://youtu.be/V3vQ8IcPyKA?si=rdi4MqTKk1xuPxZP
Can you help me ? Can you like make a video tutorial that can lightup the torch? Thankyou badly need for tomorrow thesis defense
is the torch an actor?
is the torch attached to your character?
Yes it’s an actor that can be pickup and drop and place on the wall. Same as this video tutorial in yt. I follow this but theonly problem is that he didn’t post a part 3 so that i can’t finish it. https://youtu.be/V3vQ8IcPyKA?si=JEdYEcBlS2XNRBQZ
I’m going to make this as simple as possible. So no interfaces, no distance calculation, nor nothing. Just custom events, casts and a trigger box.
In your torch BP, create a custom event to turn the light source or whatever on/off:
In your character BP, since you have the attached torch actor reference, create another custom event to turn the torch on/off:
Place a trigger box in your level:
Select the trigger box you just placed in the map and go your level BP:
now place the begin and end overlap events for the trigger box:
when player enter triggers box => torch on
when player exits triggers box => torch off
Hello, thankyou for that tutorial can i ask something how cn i connect it lie when i pickup the torch that isn’t lightup yet and then a go to trigger box like fire design and go near it it will lightup my torch and i can move around without putting out the fire like you are holding it through the game
This is the video that I’ve been following bu the part is incomplete so tha I can’t follow the last part to light up the torch that i pickup.