Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions.
See the stable version of this documentation page instead.
Weapon🔗
Inherits: Node3D
Inherited By: AutomaticWeapon, GrenadeLauncher, SpaceGun
This class defines a Weapon.
Properties🔗
|
||
Methods🔗
void |
|
void |
_ready() |
void |
trigger() |
void |
_on_primary(pressed: bool) |
Signals🔗
triggered() 🔗
Emitted after trigger is called.
Property Descriptions🔗
void set_ammo(new_ammo: int)
The ammunition count.
The maxmimum ammunition count.
The number of ammo used when triggered is emitted.
The cooldown until this Weapon can be triggered again.
There is currently no description for this property. Please help us by contributing one!
Skeleton3D player_skeleton 🔗
There is currently no description for this property. Please help us by contributing one!
Skeleton3D weapon_skeleton 🔗
There is currently no description for this property. Please help us by contributing one!
The internal timer to handle trigger cooldown
Method Descriptions🔗
void set_ammo(new_ammo: int) 🔗
There is currently no description for this method. Please help us by contributing one!
void _ready() 🔗
There is currently no description for this method. Please help us by contributing one!
void trigger() 🔗
This methods triggers the Weapon.
void _on_primary(pressed: bool) 🔗
There is currently no description for this method. Please help us by contributing one!