Blockland Forums > Modification Help

Finding the %client from the %player

Pages: (1/1)

Nexus:

If I have a function such as
--- Code: --- function Armor::onTrigger(%datablock, %player, %slot, %var)
--- End code ---


is there a way to find client connected to the %player?

1. input %client.player
2. ???
3. output %client
4. Profit

Headcrab Zombie:

%player.client?

Nexus:


--- Quote from: Headcrab Zombie on January 16, 2011, 12:46:47 PM ---%player.client?

--- End quote ---

Is that possible? I thought there was some sort of branching tree type of parenting where you could parent down from the client to it's player, but not directly back up.  Testing now.

Headcrab Zombie:

You can go %client.player.client.player.client.player.client.player...... as much as you want, although it's completely pointless.

Nexus:

ok, it works.  I never really knew that, and it makes me feel dumb now.  Locking now, I guess

Pages: (1/1)

Go to full version