SolvedEject Every Player Script

Posts 1–7 of 7 · Page 1 of 1
Eject Every Player Script
Could anyone make me a eject all players (vehicles) script real quick?
Quote Originally Posted by dukaka View Post
Could anyone make me a eject all players (vehicles) script real quick?
Stop asking to be spoonfed and do some research on functions.
Quote Originally Posted by Kosmo View Post


Stop asking to be spoonfed and do some research on functions.
Sorry boss, will do.
Quote Originally Posted by dukaka View Post
Sorry boss, will do.
I'll help you out however.
Google something like "How to eject vehicle units ArmA 2"
find out what the function(s) is and try them out.


Also remember that the classname for units in Standalone is SurvivorBase
Quote Originally Posted by Kosmo View Post


I'll help you out however.
Google something like "How to eject vehicle units ArmA 2"
find out what the function(s) is and try them out.


Also remember that the classname for units in Standalone is SurvivorBase
Will do, thanks bro.
Quote Originally Posted by dukaka View Post
Could anyone make me a eject all players (vehicles) script real quick?
Code:
mizject1=false;
mizject2 = nil;
mizject3 = nil;


mizject5 = 
{
	_vehicleair = (nearestObject[vehicle player,"AIR"]);
	_vehicleland = (nearestObject[vehicle player,"Landvehicle"]);
	if ((player distance _vehicleair) > (player distance _vehicleland)) then 
	{
		player moveInDriver _vehicleland;
	}
	else
	{
		player moveInDriver _vehicleair;
	};
};



mizject2 = cursorTarget;
mizject3 = gettext (configFile >> 'CfgVehicles' >> (typeof mizject2) >> 'displayName');

if (count(crew mizject2)>0) then {
	mizject2 action ["eject", mizject2];

	cutText [format["%1 Ejected", mizject3], "PLAIN DOWN"];
}
else
{
	cutText [format["Get in %1 ?", mizject3], "PLAIN DOWN"];

	mizject4 = 
	[
		["",true],
		["Get in ?", [-1], "", -5, [["expression", ""]], "1", "0"],
		["YES", [2], "", -5, [["expression", "mizject1=true;"]], "1", "1"],
		["NO", [3], "", -5, [["expression", "mizject1=false;"]], "1", "1"],
		["Nearest", [4], "", -5, [["expression", "call mizject5;"]], "1", "1"]
	];
	showCommandingMenu "#USER:mizject4";

	WaitUntil{mizject1};

	player moveInDriver mizject2;

	cutText [format["%1 No Player to Eject", mizject3], "PLAIN DOWN"];
};
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us