Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Finding the %client from the %player
« previous
next »
Print
Pages: [
1
]
Author
Topic: Finding the %client from the %player (Read 769 times)
Nexus
January 16, 2011, 11:22:07 AM
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
Ad Bot
Advertisement
Headcrab Zombie
January 16, 2011, 11:46:47 AM
%player.client?
Nexus
January 16, 2011, 11:49:26 AM
Quote from: Headcrab Zombie on January 16, 2011, 11:46:47 AM
%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.
Headcrab Zombie
January 16, 2011, 11:51:13 AM
You can go %client.player.client.player.client.player.client.player...... as much as you want, although it's completely pointless.
Nexus
January 16, 2011, 12:04:42 PM
ok, it works. I never really knew that, and it makes me feel dumb now. Locking now, I guess
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Finding the %client from the %player