"Raven 21 is Down" bug in USMC arrival script

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
Eboreg
Posts: 322
Joined: Wed Mar 13, 2019 10:35 pm

"Raven 21 is Down" bug in USMC arrival script

Post by Eboreg »

I've decided to give "Raven 21 is Down" a try recently and found a bug in the US_USMCReachesCrashSite script. Specifically in line 4.

Code: Select all

local theUnit = ScenEdit_UnitX()

if theUnit.dbid == 1346 or theUnit.dbid == 1696 then
    local theMessage GenerateRadioMessageBody(
        "We're at the crash site and ready to provide security until the helos can come in for extraction.",
        theUnit.name
    )
    RadioMessage(
        "VHF",
        "132.25MHz ENCRYPTED",
        theMessage,
        {latitude = theUnit.latitude, longitude = theUnit.longitude}
    )
    ChangeScore('United States',100,'USMC ground forces reached the crash site to provide security for extraction.')
    ScenEdit_SetEvent('US_USMCReachesCrashSite',{isactive=false})
end
The main issue is that there is no equal sign between the variable "theMessage" and the function "GenerateRadioMessageBody" so "theMessage" remains unassigned leading to a null reference error when the message is actually sent.
Post Reply

Return to “Tech Support”