Skip to content

Commit

Permalink
Add broadcast param
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kingsley committed Jun 26, 2016
1 parent 0c03331 commit 23145ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions ARCMF.VR/f/arc/halo/fn_paraDrop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@
* Public: Yes
*/

if (!isServer) exitWith {
_this remoteExec ["ARC_fnc_paraDrop", 2];
};

params [
["_objects", [], [[], sideUnknown]],
["_position", [], [[], ""]],
["_height", 250, [0]],
["_radius", 500, [0]]
["_radius", 500, [0]],
["_broadcast", false, [false]]
];

if (!isServer && {_broadcast}) exitWith {
_this remoteExec ["ARC_fnc_paraDrop", 2];
};

if (_position isEqualType "") then {_position = getMarkerPos _position};
if (count _position == 0) exitWith {};

Expand Down
5 changes: 3 additions & 2 deletions ARCMF.VR/f/arc/misc/fn_ambientAA.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ params [
["_burstCount", 10, [0]],
["_shotDelay", 0.5, [0]],
["_burstDelay", 5, [0]],
["_random", 0, [0]]
["_random", 0, [0]],
["_broadcast", false, [false]]
];

if (!local _vehicle) exitWith {
if (!local _vehicle && {_broadcast}) exitWith {
_this remoteExec ["ARC_fnc_ambientAA", _vehicle];
};

Expand Down

0 comments on commit 23145ec

Please sign in to comment.