Author Topic: Finding the %client from the %player  (Read 769 times)

If I have a function such as
Code: [Select]
function Armor::onTrigger(%datablock, %player, %slot, %var)

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

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


%player.client?

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.

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

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