sciencemor.blogg.se

Arma 3 persistent missions
Arma 3 persistent missions







This makes this function a bit useless as the same can be achieved with the other options but even better. The BIS_fnc_dbImportConfig function can import the config classes from the config but not the values. Just keep in mind that you can't modify the xml file from within the game, meaning that once the mission restarts the default database from that file will be loaded and not the database which existed at the end of a mission.Ī config can either be Description.ext ( mission config), the Campaign Description.ext ( campaign config) or an addon's config.bin/.cpp ( global config). An xml file can be way easier to read than a nested array.

arma 3 persistent missions

Simply add TAG_database = to any script where you want to declare the database, eg initServer.sqf.īIS_fnc_dbImportXML can convert the content of an xml file into an array which has the format of a Scripted Database. The functions in which you should be interested in are: To make the database persistent you can save it periodically to the profileNamespace.Ī list of all functions which are used to operate the database can be found here: Database functions. The downside is that it will be wiped when the mission ends or the game/server crashes. This means that the database is only available during the mission and can be modified with ingame commands.

arma 3 persistent missions

Instead of using file operations it is a semi persistent sqf database. 2.02 For better peformance (faster access and write speeds) you can use HashMaps instead.Ī Scripted Database is a simple way to manage information with ingame functions from Bohemia Interactive and has been introduced in Take On Helicopters.









Arma 3 persistent missions