ScenEdit SetKeyValue

From Baloogan Campaign Wiki
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>