Jump to content

How works the new study_body


Cubitron

Recommended Posts

18 hours ago, Cubitron said:

Hello all, the new Study_body is completed different to the old on, maybe someone can tell me how the new works. 

i try to get a addaction on Deadbodys

 

greetz

maybe you can use this part in fn_selfactions?

if (!alive _cursorTarget && _isMan && !_isZombie && !_isHarvested) then {
			if (s_player_pzombiesfeed < 0) then {
				s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",_cursorTarget, 3, true, false];
			};
		} else {
			player removeAction s_player_pzombiesfeed;
			s_player_pzombiesfeed = -1;
		};

 

 

_player_studybody16 = false;
		if (_isMan && !_isZombie && !_isAnimal) then {
			_player_studybody16 = true;
		};
		if (_player_studybody16) then {
		if (s_player_studybody16 < 0) then {
				s_player_studybody16 = player addAction [("<t color=""#FF0000"">"+("something") + "</t>"), "your path",_cursorTarget, 0, false, true, "",""];
		};
	} else {
		player removeAction s_player_studybody16;
		s_player_studybody16 = -1;
	};
	
		
		if (!alive _cursorTarget && _isMan && !_isZombie && !_isHarvested) then {
			if (s_player_pzombiesfeed < 0) then {
				s_player_pzombiesfeed = player addAction [localize "STR_EPOCH_ACTIONS_FEED", "\z\addons\dayz_code\actions\pzombie\pz_feed.sqf",_cursorTarget, 3, true, false];
			};
			
	} else {
		} else {
			player removeAction s_player_pzombiesfeed;
			s_player_pzombiesfeed = -1;
		};
	} else {
		player removeAction s_player_pzombiesfeed;
		s_player_pzombiesfeed = -1;
	};
};

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...