mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
7 lines
234 B
GDScript
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
|