sorry, i couldn't find a better way to word it
lets say you have blockhead 1 and blockhead 2
when blockhead 1 touches the brick it will say blockhead 1 touched the brick
when blockhead 1 touches the brick it will say blockhead 2 touched the brick
What the
hell are you talking about? %1 returns the client object of the player that touches the brick.
I'm assuming that it loops through all of the clients and checks if they are in the minigame, and returns true if so, and then messages them.
This isn't the actual current source code, but here's the messageTeam code from v0002:
function messageTeam(%team, %msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13)
{
%count = ClientGroup.getCount();
for(%cl= 0; %cl < %count; %cl++)
{
%recipient = ClientGroup.getObject(%cl);
if(%recipient.team == %team)
messageClient(%recipient, %msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13);
}
}
I'm assuming that sending a chatmessage/centerprint whatever through the minigame does the same method, because that would make sense.
Anyways, he asked how to get a player's name from player touch. Step on the brick, and it works. But how would having two people in the entire miniGame mess up the fact that one of them touched the brick and it said "Blockhead has touched the brick!"? Please explain.