I save the location on behalf of the player then I want to use it.
I am using this elsewhere:
Problem:
If only the player in% player% right clicks, the block is air. So %player% so % victim% doesn't work if an external player right clicks.
Code:
if victim is not {impostor} or {impostor2}:
set {location.%victim%} to victim's location
set {x.%victim%} to x coord of {location.%victim%}
set {y.%victim%} to y coord of {location.%victim%}
set {y2.%victim%} to {y.%victim%} +1
set {z.%victim%.%victim%} to z coord of {location.%victim%}
set {location2.%victim%} to location {x.%victim%}, {y.%victim%}, {z.%victim%} in world of victim
I am using this elsewhere:
Code:
on rightclick:
if clicked block is Player Head:
set block at location at {x.%player%}, {y.%player%}, {z.%player%} in world "theSkeld" to air
set block at location at {x.%player%}, {y2.%player%}, {z.%player%} in world "theSkeld" to air
Problem:
If only the player in% player% right clicks, the block is air. So %player% so % victim% doesn't work if an external player right clicks.