
However, i have come across a problem. The code has a list of players in, but i can't get the code to check the list of players, so only the ones entered manually in the code can enter(Just me). I want it so the button reads the whole list of people, and if it finds the person who pushes it's name on the list, opens the door or whatever it's event is. But in the codes current state, it cannot accept the list where it needs to go, and i have no idea how to fix it. Any help here, Top Notch Editing Specialists?
(Oh, here's the code

- Code: Select all
//===================
// NameTestSwitch.
//===================
class NameTestSwitch expands Switch2;
Var(Names) String PlayerList[32];
function Frob(Actor Frobber, Inventory frobWith)
{
local DeusExPlayer Player;
Player = DeusExPlayer(Frobber);
If(Player.PlayerReplicationInfo.PlayerName=="Allan")
{
Super.Frob(Frobber, frobWith);
}
}