Module Weapon
‘Bullet’ entities generator.
SHOT DELAY = 8
ACCURACY = 8
Class Weapon
Weapon:create (owner) | Create a Weapon . |
Weapon:primaryFire (dt, aimVector) | Shoot with primary Fire. |
Weapon:releaseFire (dt) | Release currentShootDelay. |
Class Weapon
Weapon class- Weapon:create (owner)
-
Create a Weapon .
Parameters:
- owner Entity who own this weapon
- Weapon:primaryFire (dt, aimVector)
-
Shoot with primary Fire.
This method generate
Bullet
objects.Parameters:
- dt delta time
- aimVector vector where the owner is firing.
- Weapon:releaseFire (dt)
-
Release currentShootDelay.
This attribute is reseted to fabric values.
Parameters:
- dt delta time.