Nach 13 Posted February 4, 2017 _mrap = _this select 0; // computer = object in editor addac = computer addAction ["Boom!",{ _mrap setdammage 1},[],1,false,true,"","(_target distance _this) < 150"]; publicVariable "addac"; hello, It s possible to have a return variable in addaction script "boom!" _mrap after select this ? The debug editor not found this variable . Thank for your help! Nach Share this post Link to post Share on other sites
killzone_kid 1333 Posted February 4, 2017 You can pass params to addaction script, see https://community.bistudio.com/wiki/addAction 1 Share this post Link to post Share on other sites
Nach 13 Posted February 4, 2017 14 minutes ago, killzone_kid said: You can pass params to addaction script, see https://community.bistudio.com/wiki/addAction Thank, I just change _mrap by mrap !! by;))) Share this post Link to post Share on other sites
stuguy 15 Posted February 5, 2017 (edited) //declare computer variable globally somewhere in your program fn_mrapBoom = { params ["_vehicle"]; addac = computer addAction ["Boom!",{ params[ "_target", "_caller", "_ID", "_args" ]; _args setdammage 1},_vehicle,1,false,true,"","(_target distance _this) < 150"]; publicVariable "addac"; }; [ vehicleVariableName ] call fn_mrapBoom; fixed and works Edited February 5, 2017 by stuguy was wrong Share this post Link to post Share on other sites