mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
From
e69f8d5306
Moved dog files to the \dog\ folder and pzombie files to the \pzombie\
folder. Also removed some legacy files that are no longer used.
The actions\ and compile\ folders are fully up to date now
22 lines
618 B
Plaintext
22 lines
618 B
Plaintext
achievementServer = {
|
|
private ["_playerOwnerID","_player","_achievementID","_achievements"];
|
|
|
|
_achievementID = (_this select 0) select 0;
|
|
_player = (_this select 0) select 1;
|
|
_playerOwnerID = owner _player;
|
|
|
|
diag_log (text format ["Achievement: %1 was awarded to %2", _achievementID, _player]);
|
|
|
|
_achievements = _player getVariable "Achievements";
|
|
|
|
_achievements set [_achievementID,1];
|
|
|
|
_player setVariable ["Achievements",_achievements];
|
|
|
|
// now send the OSD message to the client that called this
|
|
achievementClientPV = [_achievementID];
|
|
_playerOwnerID publicVariableClient "achievementClientPV";
|
|
|
|
};
|
|
|