Kill Your Self Script

Posts 16–30 of 55 · Page 2 of 4
if anyone finds it this might be a cool addition

C7A_man1s..4s - A straight walk of about 50m, salutes at end

so they do a walk salute then shoot themselfs
If that's the command for it then I guess this would work

Code:
player switchmove "ActsPercMstpSnonWpstDnon_suicide1B";
sleep 3.9;
playsound "gunshot";
sleep 1.5;
player setdamage 1.0;
Quote Originally Posted by qaper123 View Post
If that's the command for it then I guess this would work
I'm pretty bad at writing scripts, but wouldn't it be more something like this?

Edited a target dance script.

Code:
_name = _this select 0;
hint format ["%1 is now suiciding", _name];
_suicide = format ["if (name player == '%1') then
{
	player switchmove "ActsPercMstpSnonWpstDnon_suicide1B";
        sleep 3.9;
        playsound "gunshot";
        sleep 1.5;
        player setdamage 1.0;
	cutText [""Suiciding"", ""PLAIN"", 2];
};", _name];
[_suicide] execVM "scr\exec.sqf";
Wonderful, can't wait to try this out.
Quote Originally Posted by Skipsy View Post
Wonderful, can't wait to try this out.
This works for monky menu but i'm not quite sure how to make the animation stop since atm i'm just laying on the ground :P

Code:
_name = _this select 0;
hint format ["%1 is now suiciding", _name];
_suicide = format ["if (name player == '%1') then
{
	player playMove """ActsPercMstpSnonWpstDnon_suicide1B"";
        sleep 3.9;
        playsound "gunshot";
        sleep 1.5;
        player setdamage 1.0;
	cutText [""Suiciding"", ""PLAIN"", 2];
};", _name];
[_suicide] execVM "scr\yourRE";


Well xLithium beat me to it
testing it out now
Code:
testIndex  = _this select 1;
_thePlayer = _this select 2;



// foreach loop
{
	if (name _x == _thePlayer) then
	{ 
		_suicide = "
			_thePlayer playMove ""ActsPercMstpSnonWpstDnon_suicide1B"";
			cutText [""
			I HATE MY LIFE!!!!\n
			ALL THESE FUCKING ZOMBIES!!!!\n
			I CANT HANDLE IT!!!!\n
			ILL DO IT!!!!\n
			BUT I CANT!!!!\n
			FUCK IT!!!\n
			IM DOING IT!!\n
			"", ""PLAIN"", 2];
			sleep 3.9;
			playsound "gunshot";
			sleep 1.5;
			_thePlayer setdamage 1.0;";
                        _thePlayer switchmove ",";
		[_suicide] execVM "Scripts\exec.sqf";
	};
} foreach playableUnits;
There yeah go now all you need is a working executioner
This only works on your player not the entire servers players ****
Im gonna edit it to work on any selected player then add it to my menu
@ikillindreams

I think you need

Code:
_name = _this select 0;
And

Code:
format["if (name player == '%1')
And then add it to your menu as a script that requires a target.
Quote Originally Posted by xLithium View Post
@ikillindreams

I think you need

Code:
_name = _this select 0;
And

Code:
format["if (name player == '%1')
And then add it to your menu as a script that requires a target.
As You are new to scripting i dont think you understand...


-thePlayer Reffers to a selection on my menu (this is MY menu's code)
and name _x reffers to each player
Maybe

Code:
player playMoveNow "AmovPercMstpSrasWpstDnon";
If animation doesn't stop also.
Quote Originally Posted by xLithium View Post
Maybe

Code:
player playMoveNow "AmovPercMstpSrasWpstDnon";
If animation doesn't stop also.
you would have to do this to kill an animation
Code:
player switchmove ",";
Quote Originally Posted by ikillindreams View Post
you would have to do this to kill an animation
Code:
player switchmove ",";
Ah, alright. I'm pretty bad at these things, never written a script in my life XD.
Quote Originally Posted by xLithium View Post
Ah, alright. I'm pretty bad at these things, never written a script in my life XD.
I googled that ;p Im not good with animations
Quote Originally Posted by ikillindreams View Post
I googled that ;p Im not good with animations
Well I'm no good either and just found out this does NOT work. atleast the one I made. So if anyone could please make one that works when selected another player? :P
Code:
testIndex  = _this select 1;
_thePlayer = _this select 2;



// foreach loop
{
	if (name _x == _thePlayer) then
	{ 
		_suicide = "
			_thePlayer playMove ""ActsPercMstpSnonWpstDnon_suicide1B"";
			cutText [""
			I HATE MY LIFE!!!!\n
			ALL THESE FUCKING ZOMBIES!!!!\n
			I CANT HANDLE IT!!!!\n
			ILL DO IT!!!!\n
			BUT I CANT!!!!\n
			FUCK IT!!!\n
			IM DOING IT!!\n
			"", ""PLAIN"", 2];
			sleep 3.9;
			playsound "gunshot";
			sleep 1.5;
			_thePlayer setdamage 1.0;";
                        _thePlayer switchmove ",";
		[_suicide] execVM "Scripts\exec.sqf";
	};
} foreach playableUnits;
Im testing now
Posts 16–30 of 55 · Page 2 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us