I'd like to run something after the player requests a supply drop (module) but its not apparent to me how the module can execute a script. I Know I can run something from the modules init box but that runs at the creation of the module, not when it is used. Thanks for the insights!
As Sel says some of the modules have inits for when the vehicles (virtual) or crates (supply drop) are spawned on certain providers.
or use the variables the support modules store on the player .... e.g
[ "supportCalled", "onEachFrame",
{
if ((player getVariable "BIS_SUPP_request") select 0 != "" && count ((player getVariable "BIS_SUPP_request") select 1) == 3 && (player getVariable "BIS_SUPP_selectedProvider") getVariable "BIS_SUPP_supporting") then {
hint "support called";
//do what ever here
};
}
] call BIS_fnc_addStackedEventHandler;
//has a type of support been selected
(player getVariable "BIS_SUPP_request") select 0 != ""
//have valid coordinates been choosen
count ((player getVariable "BIS_SUPP_request") select 1) == 3
//is the choosen provider activated and supporting
(player getVariable "BIS_SUPP_selectedProvider") getVariable "BIS_SUPP_supporting"