Page 1 of 1

which is the name of player that is playing now in MP?

Posted: June 7th, 2008, 10:43 pm
by thader2005
Hi everybody


How can i know the player name( for example) or the reference of player entity that is playing now in Multi-user?

thanks for all.

Re: which is the name of player that is playing now in MP?

Posted: June 8th, 2008, 9:04 am
by JDogg
thader2005 wrote:Hi everybody


How can i know the player name( for example) or the reference of player entity that is playing now in Multi-user?

thanks for all.
self.name or players name.

Re: which is the name of player that is playing now in MP?

Posted: June 8th, 2008, 12:28 pm
by Drofder2004
<variable> = getentarray("player","classname");
trigger waittill("trigger",<variable>)

The name of a player can be whatever you want if you reference it correctly.

With single player, there is only one player, so you do not need to do anything, but with MP you must find the player first, either by using an array or some form of trigger.