Removing health off player?
Hello,
I'm creating something which counts down from 15 seconds if a player is underwater, and then once that time is over, it deducts -1 off there health until they come back up to surface or die. The only problem I'm facing is getting it to link from one file to the environment file. For example...
I have.... ServerRemotePlayer *srp = (0); srp->setHP(srp->getHP() - 1);
But this throws out an error when linking with .player.obj'.
Any ideas?
Thanks!
I'm creating something which counts down from 15 seconds if a player is underwater, and then once that time is over, it deducts -1 off there health until they come back up to surface or die. The only problem I'm facing is getting it to link from one file to the environment file. For example...
I have.... ServerRemotePlayer *srp = (0); srp->setHP(srp->getHP() - 1);
But this throws out an error when linking with .player.obj'.
Any ideas?
Thanks!