# crossLevelTargetThink
function crossLevelTargetThink(entity, world)Compute level target think.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
src/miniquake2/game/world/targets.mlProvides miniquake2 game world targets facilities for this project.
miniquake2/game/world/constants.ml as gwconstants → src/miniquake2/game/world/constants.mlminiquake2/game/world/core.ml as gwcore → src/miniquake2/game/world/core.mlminiquake2/game/world/vector.ml as gwvector → src/miniquake2/game/world/vector.mlminiquake2/qcommon/byteio.ml as targetlightrampbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/types.ml as targetactorqtypes → src/miniquake2/qcommon/types.mlstd/string.ml as sstring → ../MiniLangCompilerML/std/string.ml external dependencyfunction crossLevelTargetThink(entity, world)Compute level target think.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function earthquakeThink(entity, world)Run earthquake.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function earthquakeUse(entity, other, activator, world)Use earthquake.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 explosionThink(entity, world)Run explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
const LASER_BLUE = 8Defines the laser blue constant used by the miniquake2 game world targets module.
const LASER_DIRECTION_CHANGED = 2147483648Defines the laser direction changed constant used by the miniquake2 game world targets module.
const LASER_FAT = 64Defines the laser fat constant used by the miniquake2 game world targets module.
const LASER_GREEN = 4Defines the laser green constant used by the miniquake2 game world targets module.
const LASER_ORANGE = 32Defines the laser orange constant used by the miniquake2 game world targets module.
const LASER_RED = 2Defines the laser red constant used by the miniquake2 game world targets module.
const LASER_START_ON = 1Defines the laser start on constant used by the miniquake2 game world targets module.
const LASER_YELLOW = 16Defines the laser yellow constant used by the miniquake2 game world targets module.
function laserOff(entity, world)Report whether laser off.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function laserOn(entity, world)Report whether laser on.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function laserStart(entity, world)Start laser.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function laserThink(entity, world)Run laser.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function laserUse(entity, other, activator, world)Use laser.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 SP_target_actor(entity, world)Spawn target actor.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_blaster(entity, world)Spawn target blaster.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_changelevel(entity, world)Spawn target changelevel.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_crosslevel_target(entity, world)Spawn target crosslevel target.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_crosslevel_trigger(entity, world)Spawn target crosslevel trigger.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_earthquake(entity, world)Spawn target earthquake.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_explosion(entity, world)Spawn target explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_goal(entity, world)Spawn target goal.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_help(entity, world)Spawn target help.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_laser(entity, world)Spawn target laser.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_lightramp(entity, world)Spawn target lightramp.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_secret(entity, world)Spawn target secret.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_spawner(entity, world)Spawn target spawner.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_speaker(entity, world)Spawn target speaker.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_splash(entity, world)Spawn target splash.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function SP_target_temp_entity(entity, world)Spawn target temp entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnBlaster(entity, world)Spawn blaster.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnChangeLevel(entity, world)Spawn change level.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnCrossLevelTarget(entity, world)Spawn cross level target.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnCrossLevelTrigger(entity, world)Spawn cross level trigger.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnEarthquake(entity, world)Spawn earthquake.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnExplosion(entity, world)Spawn explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnGoal(entity, world)Spawn goal.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnHelp(entity, world)Spawn help.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnLaser(entity, world)Spawn laser.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnSecret(entity, world)Spawn secret.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnSpawner(entity, world)Spawn spawner.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnSpeaker(entity, world)Spawn speaker.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnSplash(entity, world)Spawn splash.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnTargetActor(entity, world)Spawn target actor.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function spawnTargetLightRamp(entity, world, deathmatch)Spawn target light ramp.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
deathmatch | dynamic | — | deathmatch value consumed by this operation. |
function spawnTempEntity(entity, world)Spawn temp entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function targetActorTouch(entity, other, world)target_actor from m_actor.c. AI-private state changes are represented by one explicit transition callback; this package still owns target lookup, pathtarget dispatch, jump velocity and deterministic waypoint chaining.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function targetLightRampThink(entity, world)target_lightramp from g_target.c. Configstring mutation is an explicit engine callback so this state machine stays deterministic and headless.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
world | dynamic | — | world value consumed by this operation. |
function targetLightRampUse(entity, other, activator, world)Use target light ramp.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useBlaster(entity, other, activator, world)Use blaster.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useChangeLevel(entity, other, activator, world)Use change level.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useCrossLevelTrigger(entity, other, activator, world)Use cross level trigger.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useExplosion(entity, other, activator, world)Use explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useGoal(entity, other, activator, world)Use goal.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useHelp(entity, other, activator, world)Use help.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useSecret(entity, other, activator, world)Use secret.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useSpawner(entity, other, activator, world)Use spawner.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useSpeaker(entity, other, activator, world)Use speaker.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useSplash(entity, other, activator, world)Use splash.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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 useTempEntity(entity, other, activator, world)Use temp entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity 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. |