Skip to content

Conversation

@PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror added this to the 3.20.2 milestone Nov 22, 2025
@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Nov 22, 2025
@PabstMirror
Copy link
Contributor Author

What is best way to handle

 * Return Value:
 * Success? <BOOL>
 *
 * Example:
 * [bob, true] call ace_medical_fnc_setUnconscious;
 */

// only run this after the settings are initialized
if !(EGVAR(common,settingsInitFinished)) exitWith {
    EGVAR(common,runAtSettingsInitialized) pushBack [FUNC(setUnconscious), _this];
};

this returns number if called early
should it return true, false or something else?

@LinkIsGrim
Copy link
Contributor

Typically BIS fncs return nil for such cases IIRC

@PabstMirror PabstMirror modified the milestones: 3.20.2, 3.20.3 Dec 1, 2025
_data params ["", "", "", "_eventId"];

[_eventId] call CBA_fnc_removeEventHandler;
[_name, _eventId] call CBA_fnc_removeEventHandler;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function has never worked, we could also just remove it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecate, remove in next major version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's not doing much harm
I was more worried it could cause problems if people had been calling and it starts working
but I guess we'll find out

PabstMirror and others added 3 commits December 13, 2025 12:15
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
To keep the syntax in the header consistent, we set some rules:
1. Each argument must have a type that is enclosed in brackets `<TYPE>`. The type must be in UPPERCASE.
2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `LOGIC`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `TEXT`.
2. Use one of the following types only: `OBJECT`, `NUMBER`, `STRING`, `BOOL`, `ARRAY`, `CONTROL`, `DISPLAY`, `CONFIG`, `CODE`, `ANY`, `SIDE`, `GROUP`, `HASHMAP`, `NAMESPACE`, `LOCATION`, `STRUCTUREDTEXT`, `NIL`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed logic (just object)
TEXT -> STRUCTUREDTEXT
added nil

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we deprecate this maybe? I think most people who care are going to use their preferred AI mod's garrison function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ace_zeus_fnc_moduleGarrison uses this
as far as I know it works ok, so I would prefer to keep it

_data params ["", "", "", "_eventId"];

[_eventId] call CBA_fnc_removeEventHandler;
[_name, _eventId] call CBA_fnc_removeEventHandler;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecate, remove in next major version?

@PabstMirror PabstMirror modified the milestones: 3.20.3, 3.20.2 Dec 13, 2025
@PabstMirror PabstMirror merged commit e13339f into master Dec 13, 2025
3 checks passed
@PabstMirror PabstMirror deleted the hFix1 branch December 13, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug-fix Release Notes: **FIXED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants