ScenEdit SetKeyValue

From Baloogan Campaign Wiki
Revision as of 09:28, 22 November 2014 by Baloogan (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<syntaxhighlight lang="lua"> ScenEdit_SetKeyValue(['Key'],['Value']) -- This saves a text string into the scenario for later retrieval

-- Example ScenEdit_SetKeyValue('Aircraft_With_President_Onboard', 'S-3B Viking #4')

-- ... scenario is saved, Command is closed, Command is reopened, scenario is loaded ... ScenEdit_GetKeyValue('Aircraft_With_President_Onboard') -- This evaluates to 'S-3B Viking #4'

</syntaxhighlight>