droo_k6 1 Posted January 3, 2013 (edited) So I am trying to make some First Aid scripts, however I noticed a problem with the First Aid action where a wounded medic on one side cannot be healed by a member of another side (as long as its hostile) because the action just does not appear, but any other combination seems to work fine just not medic. And I am trying to avoid using setCaptive. I looked into cfgActions in the config file under the ca.pbo but I could not find anything that would help me since it only gives the text, priority, showWindow and textDefault; nothing about the conditions or the script ran, I tried going through other game PBOs but no luck with notepad++'s search in files function. I even tried running a simple script in a single player mission to try and find it (printing the results to a file with an extension) but again no luck, same results NAME: FirstAid CONFIG: bin\config.bin/CfgActions/FirstAid NAME: text CONFIG: bin\config.bin/CfgActions/FirstAid/text TEXT - First Aid NAME: priority CONFIG: bin\config.bin/CfgActions/FirstAid/priority NUMBER - 9.9 NAME: showWindow CONFIG: bin\config.bin/CfgActions/FirstAid/showWindow NUMBER - 1 NAME: textDefault CONFIG: bin\config.bin/CfgActions/FirstAid/textDefault TEXT - <img image='\ca\ui\data\ui_action_heal_ca.paa' size='1.8' shadow=2 /> So is there anyway I can find where the cfgActions stuff is added along with conditions, if it is possible that is. I can still make a custom addAction for this specific issue if needed, would rather figure this out though. And here is the script I used in a single player mission _debug is just the function to call the extension to print to a file _config_m = configFile >> "cfgActions"; for[{_i = 0}, {_i < (count _config_m)}, {_i = _i + 1}] do { _string = ""; _string = format["I: %1 NAME: %2 CONFIG: %3", _i, configName (_config_m select _i), (_config_m select _i)]; _string call _debug; _config_a = _config_m >> configName(_config_m select _i); for[{_y = 0}, {_y < (count _config_a)}, {_y = _y + 1}] do { _string = ""; _select = (_config_a select _y); _bool = ""; switch true do { case (isClass _select): { _bool = format["CLASS - %1", _select]; }; case (isArray _select): { _bool = format["ARRAY - %1", getArray _select]; }; case (isNumber _select): { _bool = format["NUMBER - %1", getNumber _select]; }; case (isText _select): { _bool = format["TEXT - %1", getText _select]; }; default {}; }; _string = format["%1-%2 NAME: %3 CONFIG: %4 BOOL: %5", _i, _y, configName _select, _select, _bool]; _string call _debug; }; }; Edited January 3, 2013 by Droo_k6 Rewording Share this post Link to post Share on other sites
.kju 3244 Posted January 3, 2013 you cannot define or modify their conditions just disable it (show=0) and define your custom scripted action Share this post Link to post Share on other sites
droo_k6 1 Posted January 3, 2013 So is there anyway to view the conditions/actions and how the action is added? Share this post Link to post Share on other sites
droo_k6 1 Posted January 7, 2013 Bumping, really wish to know Share this post Link to post Share on other sites
.kju 3244 Posted January 7, 2013 no unless you get access to the engine source Share this post Link to post Share on other sites
droo_k6 1 Posted January 7, 2013 Well that just proved hours of searching through files pointless (again), thanks for the answer. This thread can be closed. Share this post Link to post Share on other sites
[aps]gnat 28 Posted January 11, 2013 Well that just proved hours of searching through files pointless (again). Hardly pointless. Very little of ArmA engine CAN'T be mod'ed. Unfortunately you've apparently picked one area that isn't. Share this post Link to post Share on other sites