Jump to content
  • 0

[pls] fn_selfactions problem.


lmapper

Question

I'm already tired fn_selfatstions suffer with constantly

when I add something new (and exactly what I write myself) - it does not work.

I've tried a lot of options.

I can not understand what is also my fault.

Examples:

if (_inVehicle and  (_vehicle isKindOf "Air")) then 
{
	if (_showcar = false) then
	{
		s_clear_car = player addAction ["Eject other players","scripts\player_clearCar.sqf",[],5,false,true,"",""];
		_showcar = true;
	};
}
else
{
	player removeAction s_clear_car;
	_showcar = false;
};
*/
if (_canDo) then {
	if (_testAct < 0) then {
		_testAct = player addAction ["Suck", "activate_generator.sqs"];
		};
	} else {
		_testAct = -1;
		player removeAction _testAct;
};
	// I love tea's test code
	if (_vehicle != player) then //_vehicle != player // player = driver _vehicle
	{
		if (driver _veh = player) then 
		{
			s_clear_car = player addAction ["Eject other players","scripts\player_clearCar.sqf",[],5,false,true,"",""]
		};
	}
	else
	{
		player removeAction s_clear_car;
		s_clear_car = -1;
	};
	
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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...