Search the Community
Showing results for tags 'caller'.
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:
-
Hi, I am currently trying to find a way to check if local player is function caller in sqf file. I have civilian with addAction, which calls this script: _caller = _this select 2; if (local player == _caller) then { _handle = createdialog "Interaction"; } I need to show the GUI only to player using the action. Sorry if it's somewhere on these forums, but I was unable to find it. Thanks for your answers 🙂 WendAF