diff --git a/addons/network/fnc_globalSay3d.sqf b/addons/network/fnc_globalSay3d.sqf index bc414b1a2..72e408cd6 100644 --- a/addons/network/fnc_globalSay3d.sqf +++ b/addons/network/fnc_globalSay3d.sqf @@ -9,8 +9,8 @@ Description: Parameters: _objects - Object or array of objects that perform Say - _params - [sound, maxTitlesDistance,speed] or "sound" - _range - Maximum distance from camera to execute command (optional) + _params - classname or parameter array - see biki: say3d + _range - Maximum distance from camera to execute command - will be ignored if _params is an array (optional, default: nil) Returns: Nothing @@ -30,8 +30,7 @@ if (_objects isEqualType objNull) then { _objects = [_objects]; }; -if (_params isEqualType "") then { _params = [_params]; }; -if (!isNil "_distance") then { _params set [1, _distance]; }; +if (!isNil "_distance" && { _params isEqualType "" } ) then { _params = [_params, _distance]; }; { [_x, _params] remoteExecCall ["say3D"];