Jump to content
Sign in to follow this  
logan83

Help with Addaction Function

Recommended Posts

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

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

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

@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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×