perfk 1 Posted February 12, 2014 (edited) Hey all, I would like to be able to give all opfor players the option to become a suicide bomber. - but only when he has a specific item in his weapon slot (or backpack slot) Also, my mission is a respawn mission, so i would need to be able to do it again, as long as the unit has the item. This is the code i use on all my opfor guys (every opfor can use this option, if they have the item on their back) _boomid = this addAction ["DETONATE", "suicide.sqf", [], 5, false, true, "", " ""ACE_ANPRC77"" in (weapons _this)"]; and here is my suicide.sqf file: _target = _this select 0; _caller = _this select 1; _boomid = _this select 2; "GrenadeHand" createVehicle getpos _caller; _target removeAction _boomid; This work in the sense, that if i pick up the item, i can blow my self up. but if i respawn, i'm not able to blow my self up anymore. Does anyone have an idea on how to fixe the above, or maybe a better way of doing it? Edited February 12, 2014 by Perfk Share this post Link to post Share on other sites
Persian MO 82 Posted February 15, 2014 https://dev.withsix.com/docs/cba/files/common/fnc_addPlayerAction-sqf.html#CBA_fnc_addPlayerAction http://forums.bistudio.com/showthread.php?107788-PROBLEM-Add-action-dissapears-after-respawn!&highlight=add+action+respawn Share this post Link to post Share on other sites