Skip to content

Commit

Permalink
Update fnc_globalSay3d.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Jan 5, 2025
1 parent 4824a40 commit 91b71fc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions addons/network/fnc_globalSay3d.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Description:
Parameters:
_objects - Object or array of objects that perform Say <OBJECT, ARRAY>
_params - [sound, maxTitlesDistance,speed] or "sound" <STRING, ARRAY>
_range - Maximum distance from camera to execute command (optional) <NUMBER>
_params - classname or parameter array - see biki: say3d <STRING, ARRAY>
_range - Maximum distance from camera to execute command - will be ignored if _params is an array (optional, default: nil) <NUMBER>
Returns:
Nothing
Expand All @@ -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"];
Expand Down

0 comments on commit 91b71fc

Please sign in to comment.