mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1c6c4d6bff
* Fix Brackets around code * Update fnc_handleFired.sqf * Shouldn't have changed this one --------- Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
25 lines
731 B
Plaintext
25 lines
731 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: 654wak654
|
|
* Shows a Zeus message through the BIS function, handles localization.
|
|
* If multiple args are given, they get formatted.
|
|
*
|
|
* Arguments:
|
|
* 0: Message <STRING>
|
|
* N: Anything <ANY> (default: nil)
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* ["something"] call ace_zeus_fnc_showMessage
|
|
* ["something %1 in %2", "strange", getPos neighborhood] call ace_zeus_fnc_showMessage
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
if !(_this isEqualTypeParams [""]) exitWith {ERROR_1("First arg must be string [%1]",_this);};
|
|
|
|
private _message = _this apply {if ((_x isEqualType "") && {isLocalized _x}) then {localize _x} else {_x}};
|
|
[objNull, format _message] call BIS_fnc_showCuratorFeedbackMessage;
|