Quote:
Originally Posted by sssssssssss
I would just be taking out of clientr.hp, but it's not accessible by pl.clientr.hp correct?
|
Yes, that's exactly how you should access it. Serverside you can use findPlayer to get another player object. The only difference between "temp.pl" and "player" in this case is that player is available automatically. They're both TServerPlayer objects, and you can do the same things to etiher of them. There's no reason to trigger clientside and then back.
It might help to remember that clientr.hp is really the same thing as player.clientr.hp. So you can also do findPlayer("fowlplay4").clientr.hp.
If you want to do it properly you should move this into a player class so you can just do findPlayer("fowlplay4").attack(9999, player) or whatever and not have to recycle the same logic everywhere you need to do damage.