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

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
thader2005
CJ Wannabe
CJ Wannabe
Posts: 12
Joined: May 24th, 2008, 9:31 am

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

Post by thader2005 » June 7th, 2008, 10:43 pm

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.

JDogg
Too cool for CoDJumper
Too cool for CoDJumper
Posts: 3617
Joined: August 28th, 2007, 11:46 am
Location: Melbourne, Australia

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

Post by JDogg » June 8th, 2008, 9:04 am

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.
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

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

Post by Drofder2004 » June 8th, 2008, 12:28 pm

<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.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests