Jump to content
Sign in to follow this  
hellstorm77

lock slots

Recommended Posts

I was wondering if there was away to lock different slots at the start of a mission so the public couldn't slot into it?

Share this post


Link to post
Share on other sites

Password your server or play single player. There's a bunch of other player UID based workarounds, but why even have a public server if you don't want publicly available slots?

Share this post


Link to post
Share on other sites

what i mean is make slot pilot 3 lockable so no public. its for clan members only

Share this post


Link to post
Share on other sites

as kylania stated

There's a bunch of other player UID based workarounds

check the arma 2 forums if you cant find them on the arma 3 forums

Share this post


Link to post
Share on other sites

getplayerUID.

Work around with that. Add a getin eventhandler to your helo and if the player doesn't have the UID your guys have then you kick him out. Pretty simple.


_helos = [helo1,helo2];
_playerUIDs = [//Insert UIDs here];
{
_x addEventHandler ["GetIn",{
_uid = getplayerUID (_this select 2);

if (_uid in _playerUIDs) then {
_x removeEventHandler ["Getin",0];
} else {
(_this select 2) action ["Eject",_x];
};
}];
} foreach _helos;

Just a mockup, don't actually use that, it probably won't work.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×