Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ares_fnc_RegisterCustomModule not working as documented. #520

Open
VileAce opened this issue Jun 23, 2020 · 0 comments
Open

Ares_fnc_RegisterCustomModule not working as documented. #520

VileAce opened this issue Jun 23, 2020 · 0 comments

Comments

@VileAce
Copy link

VileAce commented Jun 23, 2020

Arma 3 Version: 1.98 stable
CBA Version: 3.15.1 stable
Achilles Version: v1.3.1

Mods:

  • CBA_A3
  • Achilles
  • ZEC
  • ZEI
  • Zeus Enhanced 1.8

Description:

Steps to reproduce:
In the debug console or the Execute Code module enter code from example:

if (!isNull (getAssignedCuratorLogic player) && {isClass (configFile >> "CfgPatches" >> "achilles_modules_f_achilles")}) then
{
waitUntil {missionnamespace getvariable ["BIS_moduleMPTypeGameMaster_init", false] and {not isNil "ares_category_list"}};
	["Module Category", "Module Name", 
	{
		params [["_position", [0,0,0], [[]], 3], ["_objectUnderCursor", objNull, [objNull]]];

		systemChat str _position;
		systemChat str _objectUnderCursor;
	}] call Ares_fnc_RegisterCustomModule;
}

or

["My Category", "My Module",
{
	params [["_position", [0,0,0], [[]], 3], ["_objectUnderCursor", objNull, [objNull]]];

	private _selectedObjects = if (isNull _objectUnderCursor) then
	{
		["Objects"] call Achilles_fnc_SelectUnits;
	}
	else
	{
		[_objectUnderCursor];
	};

	if (isNil "_selectedObjects") exitWith {};

	if (_selectedObjects isEqualTo []) exitWith 
	{

		["No object was selected!"] call Achilles_fnc_showZeusErrorMessage;
	};

	systemChat format ["Position: %1 and Selected objects: %2", _position, _selectedObjects];
}] call Ares_fnc_RegisterCustomModule;

Close Zeus interface
Open Zeus interface
Look for Category and module
Only Category is created.

  • Environment: Dedicated
  • Mission: Very basic custom Zeus mission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant