Replaced execRemoteFnc by ACE event system

This commit is contained in:
Glowbal 2015-02-24 18:10:40 +01:00
parent 278f0ab889
commit 37031b5002
3 changed files with 3 additions and 6 deletions

View File

@ -158,3 +158,6 @@ GVAR(OldPlayerTurret) = [ACE_player] call FUNC(getTurretIndex);
PARAMS_2(_vehicle,_fuelLevel); PARAMS_2(_vehicle,_fuelLevel);
_vehicle setFuel _fuelLevel; _vehicle setFuel _fuelLevel;
}] call FUNC(addEventhandler); }] call FUNC(addEventhandler);
["displayTextStructured", FUNC(displayTextStructured)] call FUNC(addEventhandler);
["displayTextPicture", FUNC(displayTextPicture)] call FUNC(addEventhandler);

View File

@ -21,9 +21,6 @@ _imageColor = if (count _this > 2) then {_this select 2} else {[1,1,1]};
_imageColor resize 3; _imageColor resize 3;
_target = if (count _this > 3) then {_this select 3} else {ACE_player}; _target = if (count _this > 3) then {_this select 3} else {ACE_player};
if (!local _target && {_target != ACE_player}) exitwith {
[_this, QUOTE(DFUNC(displayTextPicture)), _target] call FUNC(execRemoteFnc);
};
if (_target != ACE_player) exitWith {}; if (_target != ACE_player) exitWith {};
if (typeName _text != "TEXT") then { if (typeName _text != "TEXT") then {

View File

@ -18,9 +18,6 @@ _text = _this select 0;
_size = if (count _this > 1) then {_this select 1} else {0.1;}; _size = if (count _this > 1) then {_this select 1} else {0.1;};
_target = if (count _this > 2) then {_this select 2} else {ACE_player}; _target = if (count _this > 2) then {_this select 2} else {ACE_player};
if (!local _target && {_target != ACE_player}) exitwith {
[_this, QUOTE(DFUNC(displayTextStructured)), _target] call FUNC(execRemoteFnc);
};
if (_target != ACE_player) exitWith {}; if (_target != ACE_player) exitWith {};
if (typeName _text != "TEXT") then { if (typeName _text != "TEXT") then {