Skip to content

Commit 1fb24ad

Browse files
authored
Merge pull request #1794 from CBATeam/headerCleanup
General - Cleanup headers and fix some return values
2 parents 8d18fd8 + 7704dfa commit 1fb24ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+61
-62
lines changed

addons/accessory/fnc_switchAttachment.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Author:
2323
---------------------------------------------------------------------------- */
2424

2525
params ["_itemType", "_switchTo"];
26-
if (!isNull curatorCamera) exitWith {};
26+
if (!isNull curatorCamera) exitWith {false};
2727

2828
private ["_currItem", "_switchItem"];
2929
private _unit = call CBA_fnc_currentUnit;

addons/common/fnc_addMagazine.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Description:
1111
Parameters:
1212
_unit - the unit or vehicle <OBJECT>
1313
_item - name of the magazine to add <STRING>
14-
_ammo - ammo count <NUMBER>
15-
_verify - if true, then put item in vehicle or on the ground if it can't be added <BOOLEAN>
16-
_skipAnim - does not play the animation when true (optional, default: false) <BOOLEAN>
14+
_ammo - ammo count <NUMBER> (Default: -1, which means full magazine)
15+
_verify - if true, then put item in vehicle or on the ground if it can't be added <BOOLEAN> (Default: false)
16+
_skipAnim - does not play the animation when true (optional, default: false) <BOOLEAN> (Default: false)
1717
1818
Returns:
1919
true on success, false otherwise <BOOLEAN>

addons/common/fnc_addMagazineCargo.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Parameters:
1212
_container - the vehicle <OBJECT>
1313
_item - name of magazine to <STRING>
1414
_count - number of magazines to add <NUMBER> (Default: 1)
15-
_verify - if true, then put item on the ground if it can't be added <BOOLEAN>
15+
_verify - if true, then put item on the ground if it can't be added <BOOLEAN> (Default: false)
1616
_ammo - ammo count <NUMBER> (Default: 1E6)
1717
1818
Returns:

addons/common/fnc_addWeapon.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Description:
1111
Parameters:
1212
_unit - the unit <OBJECT>
1313
_item - name of the weapon to add <STRING>
14-
_verify - if true, then put item on the ground if it can't be added <BOOLEAN>
15-
_skipAnim - does not play the animation when true (optional, default: false) <BOOLEAN>
14+
_verify - if true, then put item on the ground if it can't be added <BOOLEAN> (Default: false)
15+
_skipAnim - does not play the animation when true (optional, default: false) <BOOLEAN> (Default: false)
1616
1717
Returns:
1818
true on success, false otherwise <BOOLEAN>

addons/common/fnc_addWeaponCargo.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Parameters:
1212
_container - the vehicle <OBJECT>
1313
_item - name of weapon <STRING>
1414
_count - number of weapons to add <NUMBER> (Default: 1)
15-
_verify - if true, then put item on the ground if it can't be added <BOOLEAN>
15+
_verify - if true, then put item on the ground if it can't be added <BOOLEAN> (Default: false)
1616
1717
Returns:
1818
true on success, false otherwise <BOOLEAN>

addons/common/fnc_addWeaponWithoutItems.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description:
99
Attempts to keep magazine ids for unrelated magazines.
1010
1111
Parameters:
12-
_unit - Unit to add the weapon to <OBEJCT>
12+
_unit - Unit to add the weapon to <OBJECT>
1313
_weapon - Weapon to add <STRING>
1414
_removeLinkedItems - If linked items should be removed or not <BOOLEAN> (Default: true)
1515

addons/common/fnc_deleteNamespace.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description:
66
Deletes a namespace created with CBA_fnc_createNamespace.
77
88
Parameters:
9-
_namespace - a namespace <LOCATION>
9+
_namespace - a namespace <LOCATION or OBJECT>
1010
1111
Returns:
1212
None

addons/common/fnc_findEntity.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description:
77
88
Parameters:
99
- Type (Classname or Object) <STRING, OBJECT>
10-
- Position <OBJECT, LOCATION, GROUP, TASK, MARKER, POSITION>
10+
- Position <OBJECT, LOCATION, GROUP, TASK, MARKER, ARRAY>
1111
1212
Optional:
1313
- Radius <NUMBER>

addons/common/fnc_getAlive.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Description:
66
A function used to find out who is alive in an array or a group.
77
88
Parameters:
9-
_entities - Array or Group <GROUP, ARRAY>
9+
_entities - Array or Group <GROUP, ARRAY, OBJECT>
1010
1111
Example:
1212
(begin example)
1313
_alive = (units player) call CBA_fnc_getAlive
1414
(end)
1515
1616
Returns:
17-
<ARRAY>
17+
<ARRAY> (or <BOOL> if a single object is passed)
1818
1919
Author:
2020
Rommel

addons/common/fnc_getCfgDataHashmap.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Parameters:
1717
_convert - convert certain values - see above (optional, default: true) <BOOL>
1818
1919
Returns:
20-
properties <HASHMAP>
20+
properties <HASHMAP> (or <NIL> if _cfg is invalid)
2121
2222
Examples:
2323
(begin example)

0 commit comments

Comments
 (0)