Exploding Barrel
This page shows you how to use a Damage Volume and Target to create damaging traps.. You can apply the same principles with different types of triggers, interactions and switches based on the game you want to create.
A functional stamp is available under Exploding Barrel
'"`UNIQ--youtube-00000000-QINU`"'
Required Nodes & Objects:
1x Sphere Damage Volume
1x On/Off Node
1x Remove Node
1x Set Visibility Node
1x Target Cylinder
1x Explosion
1x Barrel 1A
1
Place Barrel
There are a few barrels in Arcadia, pick the one that suits you best. I used Barrel 1A
2
Place Cylinder Target
Cylinder target acts as a volume that the player can attack. Place it over your barrel, so you can't see it anymore.
3
Place Remove node
Place a Remove node near your barrel & remove node.
4
Link Remove Node to your Barrel
Event: Act On → Barrel
(You may need to more your Target Cylinder to select the barrel)
Event: Act On → Target Cylinder
</p?
5
Link Target Cylinder to Remove Node
Event: On Destroyed → Function: Activate
If you play test at this point, you will be able to shoot your cylinder, and it will disappear when it is destroyed
6
Kill nearby actors
An exploding barrel that does no damage isn't very useful.
Place Sphere Damage Volume on top of your barrel.
Set it's radius to 10
Enable Kill Instantly
7
Activate damage volume
Place an On/Off node
Connect Event: On Destroyed → Function: Activate
from Target Cylinder to On/Off node
Connect Event: Turn On/Off → Function: Turn On/Off
from On/Off node to Damage Volume
If you preview now, standing next to your barrel while destroying it will eliminate the player.
8
Make it sparkle
Place an Explosion node on top of the barrel
Connect Event: On Destroyed → Function: Play
from Target Cylinder to Explosion
9
Hide target cylinder
Finally, to hide the target cylinder from the player, place a Set Visibility Node
Connect Event: Act On → Function: Visibility
from Set Visibility Node to the Target Cylinder