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

Random intel when searching bodies #220

Closed
gerard-sog opened this issue Oct 6, 2024 · 3 comments
Closed

Random intel when searching bodies #220

gerard-sog opened this issue Oct 6, 2024 · 3 comments
Labels
new feature New feature or request

Comments

@gerard-sog
Copy link
Owner

I will create similar scripts that adds following behavior:

  • Zeus module that can be clicked on any AI, will have search action on them with random intel from a finite list. Once item consumed it is removed from list.
  • Have an option to have this on all killed AI if desired (in CBA setting).

Can take example from this script (with some bugs, dupliczted actions) made by 'Soapbox":
`missionNameSpace setVariable ["intel_hints", ["SMALL DIARY", "DOCUMENTS", "Personal Trinkent"]];

addMissionEventHandler ["EntityKilled", {
params ["_killed", "_killer", "_instigator"];

if ((faction _killed) == "CIV_f" || faction _killer isEqualTo faction _killed) exitWith {false};
	[_killed,
"Search for intel",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa",
"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa",
"!alive _target",
"_caller distance _target <3",
{_caller playMove "AinvPknlMstpSrasWrflDnon_Putdown_AmovPknlMstpSrasWrflDnon";},
{},
{params ["_target", "_caller", "_actionId", "_arguments"];

        _target removeAction _actionID;
        []spawn {
            hint "Searching...";
            sleep 1;

            if ((round random 10) > 8) then {
                hint selectRandom (missionNameSpace getVariable ["intel_hints", []])
            } else {
                hint "Nothing found..."
            }
        }
	},
{},
[],
2,
0,
false,
false,
false

] remoteExec ["BIS_fnc_holdActionAdd", 0, _killed];
}];`

@gerard-sog gerard-sog added the new feature New feature or request label Oct 6, 2024
@TDeakin1013
Copy link
Collaborator

TDeakin1013 commented Oct 7, 2024

Add document to inventory? Only challenge is how to then create intel in the intel part of the map, or do we want that? Could have it so we need to exfil the intel before we get anything useful from it, maybe it could be coded and it needs to go to HQ for decoding? This also means you don't have to write any intel.

@gerard-sog
Copy link
Owner Author

Currently being implemented in #232

@gerard-sog
Copy link
Owner Author

updated in #238

@gerard-sog gerard-sog closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants