ScenEdit SetKeyValue

From Baloogan Campaign Wiki
Revision as of 09:32, 22 November 2014 by Baloogan (talk | contribs) (Baloogan moved page LuaApi:ScenEdit SetKeyValue to ScenEdit SetKeyValue without leaving a redirect)

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

<syntaxhighlight lang="lua"> ScenEdit_SetKeyValue(['Key'],['Value']) ScenEdit_GetKeyValue(['Key']) --This returns the value last saved by ScenEdit_SetKeyValue -- 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>