Code: Select all
humanspawn = 1
OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
if humanspawn =~ 1 then -- This is line 50.
ShowPopup("level.ARI.beginningpopup")
humanspawn = 2
end,
end,
end
)Code: Select all
C:\BF2_ModTools\data_ARI\_BUILD\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\ARI\ARIc_con.lua:50: `then' expected near `='
ERROR[scriptmunge scripts\ARI\ARIc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\ARI\ARIc_con.lua]:Could not read input file. [continuing]
2 Errors 0 WarningsAlso, a forum search told me that ShowObjectiveTextPopup() is better than ShowPopup(), but for this method, do you need ScriptCB_SetGameRules("campaign")?





