mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Replaces display size and position defines with macros for readability and compactness. Changes naming convention of functions and displays to distinguish categories and make more readable. Converts the global set skill module to use display events rather than waiting in a loop for the module to be set and confirmed.
15 lines
370 B
Plaintext
15 lines
370 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isServer) then {
|
|
["ServerUpdateAISettings",FUNC(moduleGlobalSetSkill)] call EFUNC(common,addEventHandler);
|
|
};
|
|
|
|
["UpdateAISettings", {
|
|
TRACE_1("UpdateAISettings EH",_this);
|
|
{
|
|
if (local _x) then {
|
|
[_x] call FUNC(setSkillsLocal);
|
|
};
|
|
} forEach allUnits;
|
|
}] call EFUNC(common,addEventHandler);
|