# createHandGrenadeState
function createHandGrenadeState(owner, ammo)Create hand grenade state.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | dynamic | — | owner value consumed by this operation. |
ammo | dynamic | — | ammo value consumed by this operation. |
src/miniquake2/game/weapons/types.mlProvides miniquake2 game weapons types facilities for this project.
miniquake2/game/gameplay/types.ml as gptypes → src/miniquake2/game/gameplay/types.mlminiquake2/game/weapons/constants.ml as wbconstants → src/miniquake2/game/weapons/constants.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction createHandGrenadeState(owner, ammo)Create hand grenade state.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | dynamic | — | owner value consumed by this operation. |
ammo | dynamic | — | ammo value consumed by this operation. |
function createProjectile(number, className)Create projectile.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
function createTarget(number, health)Create target.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
health | dynamic | — | health value consumed by this operation. |
miniquake2.game.weapons.types.HandGrenadeState struct
miniquake2.game.weapons.types.Projectile struct
miniquake2.game.weapons.types.WeaponCallbacks struct
miniquake2.game.weapons.types.WeaponContext struct