Search the Community
Showing results for tags 'toolkit'.
Found 2 results
-
BIS_fnc_holdActionAdd with сondition
Anteq Iney posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I need a script that will display my holdaction if the player has an item in his inventory. My script that doesn't work: if (playerside == west) then { { [_x,"<t color='#FFAA00'>Remove!</t>", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_unbind_ca.paa", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_unbind_ca.paa", "_this distance _target < 4", "(_caller distance _target < 4) && ("ToolKit" in items _caller)", {[_target, "wire_s",100] spawn CBA_fnc_globalSay3d;}, {}, {deleteVehicle _target;}, {}, [], 9, 0, true, false] call BIS_fnc_holdActionAdd; } forEach wire; }; Arma writes that there is an error in the line: "(_caller distance _target < 4) && ("ToolKit" in items _caller)", Where is the error and why it doesn't work?- 3 replies
-
- bis_fnc_holdactionadd
- holdaction
-
(and 6 more)
Tagged with: