#Setting an entity to a variable help.

1 messages · Page 1 of 1 (latest)

sharp beacon
#

When I try to set a entity (In this case an attacker) to a variable, it gives me the error:
"an entity can't be set to anything"
What should I do?

CODE:

    if attacker is player:
        set attacker to {burnpig::%attacker%}```
sullen spire
#

You have to set the variable to attacker

#

What you’re doing right now is the same thing is typing “set creeper to pig”

#

Or “set player to bee”

#

It just doesn’t work

#

But “set {_e} to attacker” will