version 4.3
I’m developing an fps and I want to make a blast weapon that checks in a cube in front of it when I press fire, how could I do that without interfering with enemy movement and working when clicked instead of when entered
I’m thinking of something similar in size and shape to the TF2 pyro airblast picture included below
on your area3d script which should be the box
use get_overlapping_bodies() on func _physics_process(delta):
thank you
print($blast.get_overlapping_bodies())
outputs this:
[enemy1:<CharacterBody3D#34577843469>]
is there any way I could get rid of the enemy1
part and replace it with CharachterBody3D ?
what do you mean? there’s no one else in that array
sorry i was really tired when i wrote that reply and passed out for 15 hours