Jump to content
  • 0

[WIP] Spawn based on humanity


CartoonrBOY

Question

This script works for players with positive humanity, but I cannot get it to work with heroes or bandits, when uncommented the script leaves all players blacked out. Does anyone have an idea why?

if (!isDedicated) then {
	cutText ["","BLACK OUT"];
	sleep 1;
/*	if ((player getVariable"humanity") < 0) then {
		player setPosATL [8952.6816, 10508.317, 0.1];
		cutText ["","BLACK IN"];
	};*/
	if ((player getVariable"humanity") > 1) then {
//		if ((player getVariable"humanity") < 8999) then {
			player setPosATL [7045.17, 11901.4, 0.1];
			cutText ["","BLACK IN"];
		};
/*	};
	if ((player getVariable"humanity") > 9000) then {
		player setPosATL [5472.9067, 10611.989, 0.1];
		cutText ["","BLACK IN"];
	}:*/
};

Thanks in advance...

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Fixed:

if (!isDedicated) then {
	cutText ["","BLACK OUT"];
	sleep 1;
	if ((player getVariable"humanity") < 0) exitWith {
		player setPosATL [8952.6816, 10508.317, 0.1];
		cutText ["","BLACK IN"];
	};
	if ((player getVariable"humanity") > 9000) exitWith {
		player setPosATL [5472.9067, 10611.989, 0.1];
		cutText ["","BLACK IN"];
	};
	if ((player getVariable"humanity") > 1) then {
		if ((player getVariable"humanity") < 8999) exitWith {
			player setPosATL [7045.17, 11901.4, 0.1];
			cutText ["","BLACK IN"];
		};
	};
};

Use with: Custom spawn locations based on UID.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...