logan83 11 Posted May 24, 2015 Hi guys, can anyone helpme a little? i need to know how work this simple function... DZS_fn_addAction = { _ruinBuild = _this select 0; if (_ruinBuild == 0) then { (_this select 1) addAction ["<t color='#0077EE'>Investigate body</t>",{[_this select 0] call DZS_fn_displayInfo}]; } else { _ruinBuild addAction ["<t color='#0077EE'>investigate building</t>",{[_this select 0] call DZS_fn_displayInfo}]; }; }; in the mision, when i Kill a soldier, his body "create an addaction" named as investigate Body... but i cant see any addaction called investigate Building, i search trow dozen of houses, but dont see anything i try in ruin buildings and nothing... some help?:confused: sorry about my poor english :( Share this post Link to post Share on other sites
zakiechan 11 Posted May 25, 2015 Does the array passed to DZS_fn_addAction contain [_ruinBuild,** THE OBJECT YOU WANT THE ADDACTION TO BE ON**] ? Share this post Link to post Share on other sites
Naiss 28 Posted May 25, 2015 idk if you are doing singel player or mp but if it's mp this may work (not tested) DZS_fn_addAction = { private ["_ruinBuild"]; _ruinBuild = _this select 0; if (_ruinBuild == 0) then { (_this select 1) addAction ["<t color='#0077EE'>Investigate body</t>",{[_this select 0] call DZS_fn_displayInfo}]; } else { [[_ruinBuild], "LL_ServerGetAction", true] call BIS_FNC_MP; }; }; LL_ServerGetAction = { private ["_ruinBuild"]; _ruinBuild = _this select 0; _ruinBuild addAction ["<t color='#0077EE'>investigate building</t>",{[_this select 0] call DZS_fn_displayInfo}]; }; Share this post Link to post Share on other sites
logan83 11 Posted June 1, 2015 @zakiechan i dont understand u, u refer to _ruinbuid array?? in this case yes the array its defined @lifemanlive im working on it but dont work, any way im interested in spbut dont work either... :( thanks u guys Share this post Link to post Share on other sites