⚠️ Not yet verified in-game β€” this page was drafted from source analysis and hasn't been confirmed by actually running it. Treat it as a strong draft, not gospel.

MrxArtilleryAttack

Module: mrxartilleryattack.lua

Overview

The MrxArtilleryAttack module is responsible for executing a staggered falling-ordnance strike. It spawns multiple shells at randomized positions around the target location, creating an artillery bombardment effect.

Inheritance

  • Inherits from: none β€” base/utility module
  • Imports: none

Instance pattern

This is a stateless manager/utility module (no per-instance table). It does not track any persistent state.

Functions

Create(uGuid, nShells, nDistance, sTemplate, nTime)

Spawns an artillery bombardment at the specified location (uGuid). Configures the number of shells (nShells), distance from the target (nDistance), shell template (sTemplate), and total time for the attack (nTime). Randomizes positions for each shell and schedules their deployment using timers.

TriggerFallingMissile(x, y, z, sTemplate)

Spawns a single falling missile at the specified coordinates (x, y, z) using the provided template (sTemplate).

Events

  • Listens for custom event Event.TimerRelative to schedule each shell’s deployment.

Notes for modders

  • Ensure that the correct parameters are passed to Create to achieve the desired artillery strike.
  • Customize the number of shells, distance, and timing by adjusting the parameters when calling Create.
  • The module uses randomization to spread out the shells around the target location, creating a more realistic artillery bombardment effect.

Back to top

This site uses Just the Docs, a documentation theme for Jekyll.