Having an issue where my if then statements are not working.
function BatumiResupply()
local side = BatumiFlagS:Get()
-- local supplies = BatumiFlagR:Get()
US_CC = COMMANDCENTER:New( GROUP:FindByName( "BLUEHQ" ), "USA HQ" )
US_CC:MessageTypeToCoalition( string.format( "%s is the side", BatumiFlagS:Get() ), MESSAGE.Type.Information )
if ( 1 == 1 ) then
US_CC:MessageTypeToCoalition( "ROH ****" )
end
if BatumiFlagS:Is( 1 ) then
US_CC:MessageTypeToCoalition( "Roger Resupply is on its way" )
else
US_CC:MessageTypeToCoalition( "Roger Resupply is on its way22" )
end
end
As you can see im just using those messages as a debug. The first message is displayed when called but anything with if then does not work. I even tried doing
if 1 == 1 then
my message code
end
in triggers in the editor but nothing works.