Eargasm 10 Posted January 28, 2014 (edited) I want to make a script to kill yourself like the T@W suicide script but modify it so that you have to have a pistol to engage the action in the menu. So example: player addaction ["Suicide.","suicide.sqf"]; "You must have a pistol for this option to show up and if you do not have a pistol the option won't show" suicide.sqf: player playMove "ActsPercMstpSnonWpstDnon_suicide1B"; sleep 8.5; playSound "Bam"; player setdamage 1; Can anyone help with this? Note: I also want to make it so that only civilians can do this! Edited January 28, 2014 by Eargasm Share this post Link to post Share on other sites
big_wilk 12 Posted January 28, 2014 MyAction = player addAction [("<t color="#CC2900"">" + ("Is it all to much just click here!?") + "</t>"), "NGS\open.sqf", "radio", -1, false, true,"", "_this == _target && _this hasWeapon ""weaponsCLASSnamehere""]; Get the class name of the gun you want him to have and put it into the weaponsCLASSnamehere section, only the person who has the gun and the action can now use this action. Share this post Link to post Share on other sites
Eargasm 10 Posted January 28, 2014 (edited) Now how do I make it so that it can be used with all pistols in general or do I have to input each classname? If so how? Also would like this to display a global message that so and so shot himself if its not too much to ask. Edited January 28, 2014 by Eargasm Share this post Link to post Share on other sites