Files
godot-demo-projects/3d/platformer/player/bullet/bullet.gd
2025-10-11 05:03:59 -07:00

7 lines
234 B
GDScript

class_name Bullet
extends RigidBody3D
## If `true`, the bullet can hit enemies. This is set to `false` when the bullet
## hits an enemy so it can't hit an enemy multiple times while the bullet is fading out.
var enabled: bool = true