WeaponProps
Defined in: packages/engine/src/components/Weapon.tsx:20
Extends
Section titled “Extends”Omit<WeaponSettings,"kind">.Partial<Pick<WeaponSettings,"kind">>
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
button? |
PointerButton |
PointerButton.Primary |
- |
damage |
number |
undefined |
Health one hit takes. |
kind? |
WeaponKind |
undefined |
- |
model? |
string |
undefined |
The registered model a projectile is drawn as; none draws nothing. |
name |
string |
undefined |
The name its shots go to the room under: one per weapon. |
range |
number |
undefined |
Metres a shot reaches. |
shotsPerSecond |
number |
undefined |
The most shots a second a player fires with it. |
speed? |
number |
undefined |
Metres a second a projectile flies: defaultProjectileSpeed when left out. An instant shot has none. |