Jump to content
Sign in to follow this  
Eargasm

Add action when armed

Recommended Posts

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 by Eargasm

Share this post


Link to post
Share on other sites

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

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 by Eargasm

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×