Solved player is in world error

  • 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 comminuty!

    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.

EricDasBrot

Member
Jun 1, 2017
26
0
0
28
hello. i have a problem. i hope you can help me.

on damage:
if player is in world "Lobby_3":
cancel event
[doublepost=1496690395,1496690328][/doublepost]oh, and i started with script 1 week ago. xd
 
Does this apply to the attacker or victim? Replace player to either attacker or victim, depending on who you are trying to specify.
 
Attacker and victim :/.

Sorry, i am a noob.

code_language.skript:
on damage:
    if attacker and victim are in world "Lobby_3":
        cancel event

If you only want to apply this for players and not entities, then do
code_language.skript:
on damage of player:
    if attacker is a player:
        if attacker and victim are in world "Lobby_3":
            cancel event
 
Status
Not open for further replies.