Solved Players invisible but can be damaged.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 17, 2017
8
0
0
Hello!
So recently I have been wondering if there is a way to make a player be able to hit a player while they are in vanish.

This is using the "hide loop-player to all players" code.

If anyone knows how to do this or can tell me if it is possible or not it would be greatly appreciated!

Thanks!
- George
 
You can probably check for left click events, check the player's target, and then simulate a damage event. Even though the client doesn't know that the hidden player is there, the server will know, and will be able to tell based on the "player's target" expression for the attacking player.
 
You can probably check for left click events, check the player's target, and then simulate a damage event. Even though the client doesn't know that the hidden player is there, the server will know, and will be able to tell based on the "player's target" expression for the attacking player.

Ok thank you :emoji_grinning:
 
Status
Not open for further replies.