# createTurretControl
function createTurretControl(callbacks, skill)Create turret control.
| Parameter | Type | Default | Description |
|---|---|---|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
src/miniquake2/game/world/turret_types.mlProvides miniquake2 game world turret types facilities for this project.
function createTurretControl(callbacks, skill)Create turret control.
| Parameter | Type | Default | Description |
|---|---|---|---|
callbacks | dynamic | — | callbacks value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
function createTurretLimits(minPitch, maxPitch, minYaw, maxYaw)Create turret limits.
| Parameter | Type | Default | Description |
|---|---|---|---|
minPitch | dynamic | — | minPitch value consumed by this operation. |
maxPitch | dynamic | — | maxPitch value consumed by this operation. |
minYaw | dynamic | — | minYaw value consumed by this operation. |
maxYaw | dynamic | — | maxYaw value consumed by this operation. |
function defaultTurretCallbacks()Return the default turret callbacks value.
function defaultTurretLimits()Return the default turret limits value.
function turretAlwaysVisible(driver, enemy, world)Report whether turret always visible.
| Parameter | Type | Default | Description |
|---|---|---|---|
driver | dynamic | — | driver value consumed by this operation. |
enemy | dynamic | — | enemy value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
miniquake2.game.world.turret_types.TurretCallbacks struct
miniquake2.game.world.turret_types.TurretControl struct
function turretEntitySound(origin, entity, soundName, world)Return the turret entity sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
soundName | dynamic | — | soundName value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
miniquake2.game.world.turret_types.TurretLimits struct
function turretNoDriverDie(driver, inflictor, attacker, damage, point, world)Report whether turret no driver die.
| Parameter | Type | Default | Description |
|---|---|---|---|
driver | dynamic | — | driver value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
point | dynamic | — | point value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretNoDriverSpawn(driver, world)Report whether turret no driver spawn.
| Parameter | Type | Default | Description |
|---|---|---|---|
driver | dynamic | — | driver value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretNoDriverUse(driver, other, activator, world)Report whether turret no driver use.
| Parameter | Type | Default | Description |
|---|---|---|---|
driver | dynamic | — | driver value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretNoRocket(attacker, start, direction, damage, speed, splashRadius, world)Report whether turret no rocket.
| Parameter | Type | Default | Description |
|---|---|---|---|
attacker | dynamic | — | attacker value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
direction | dynamic | — | direction value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
speed | dynamic | — | speed value consumed by this operation. |
splashRadius | dynamic | — | splashRadius value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretNoSkill()Report whether turret no skill.
function turretNoTarget(driver, world)Report whether turret no target.
| Parameter | Type | Default | Description |
|---|---|---|---|
driver | dynamic | — | driver value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretWorldCrush(target, inflictor, attacker, amount, knockback, means, world)Return the turret world crush value.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
inflictor | dynamic | — | inflictor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
knockback | dynamic | — | knockback value consumed by this operation. |
means | dynamic | — | means value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function turretZeroRandom()Return the turret zero random value.