I’m trying to make c4 for a project I am working on.
Currently I have given the player the ability to place the c4 at the press of a button. (Shown below)
This works perfectly as the C4 CLASS is referenced and spawned at a target point in the player’s hand.
The difficulty arises when I tried to add the ability to explode the C4.
The way I want this to work is by spawning a damage volume (this is the C4 EXPLOSION object) on the location of the C4 for a split second (0.1 seconds) before destroying both the C4 and the C4 EXPLOSION.
This does not work, however. Not even so much as an error in the error log. I believe the problem to be getting a reference to the C4 object as it is not in the scene from the start (Rather placed by the player themselves). In this particular screenshot, I have not referenced the C4 EXPLOSION object, although that is not the issue.
I would like some help getting a reference for the C4 object itself after it is spawned and then spawning a C4 EXPLOSION object onto it.
Thanks for any help!