mirror of
https://github.com/indig0fox/Arma3-AttendanceTracker.git/
synced 2025-12-08 01:41:49 -06:00
- no longer supports server events - can now more easily build using hemtt - extension vastly improved in both structure and functionality - tested on listen server - includes schema change
29 lines
726 B
Plaintext
29 lines
726 B
Plaintext
_world = ( configfile >> "CfgWorlds" >> worldName );
|
|
_author = getText( _world >> "author" );
|
|
_name = getText ( _world >> "description" );
|
|
|
|
_source = configSourceMod ( _world );
|
|
|
|
_workshopID = '';
|
|
|
|
{
|
|
if ( ( _x#1 ) == _source ) then {
|
|
_workshopID = _x#7;
|
|
break;
|
|
};
|
|
} foreach getLoadedModsInfo;
|
|
|
|
// [_name, _author, _workshopID];
|
|
_return = createHashMapFromArray [
|
|
["author", _author],
|
|
["workshopID", _workshopID],
|
|
["displayName", _name],
|
|
["worldName", toLower worldName],
|
|
["worldNameOriginal", _name],
|
|
["worldSize", worldSize],
|
|
["latitude", -1 * getNumber( _world >> "latitude" )],
|
|
["longitude", getNumber( _world >> "longitude" )]
|
|
];
|
|
[format["WorldInfo is: %1", _return]] call attendanceTracker_fnc_log;
|
|
_return
|