Skip to content

Develop#2611

Merged
Applevangelist merged 23 commits into
master-ngfrom
develop
Jul 16, 2026
Merged

Develop#2611
Applevangelist merged 23 commits into
master-ngfrom
develop

Conversation

@Applevangelist

Copy link
Copy Markdown
Contributor

No description provided.

Applevangelist and others added 23 commits May 21, 2026 20:04
SPAWN:SpawnAtAirbase scheduled the synthetic takeoff event for air-spawned
groups with:

    self:ScheduleOnce(5, BASE.CreateEventTakeoff,
                      {GroupSpawned, timer.getTime(), UnitSpawned:GetDCSObject()})

BASE:ScheduleOnce(Start, SchedulerFunction, ...) forwards its trailing
arguments to the scheduled function as varargs (it wraps `...` in a table
internally). Wrapping the arguments in a table here made that table argument
number one, so CreateEventTakeoff ran with the {group, time, dcs} table as
`self`. A plain table has no :F(), the very first line errored, and the
S_EVENT_TAKEOFF event was never raised. Air-spawned AI_A2A_DISPATCHER GCI
defenders therefore never activated (observed: zero QRA scrambled with
takeoff = Air).

The sibling call site in SpawnAtParkingSpot is correct because it uses
SCHEDULER:New(nil, fn, {args}, 5), which DOES take a single argument table.
Drop the braces so the args pass as varargs, matching CreateEventTakeoff's
(self=group, EventTime, Initiator) signature.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…-args

fix(Spawn): air-spawn takeoff event never fired (wrong arg packing)
# Conflicts:
#	Moose Development/Moose/Core/Spawn.lua
@Applevangelist
Applevangelist merged commit 1a9540d into master-ng Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants