So I am making a game that requires me to create a region that, when entered, the player gains score and is subsequently teleported back to the spawn location.
My script goes likes this:
Triggers: when a unit enters a region
if ((last triggering region)) == (score1)
then do:
-
set player attribute Score of (owner of (last triggering unit)) as (((Score of (owner of (last triggering unit)))) + (((1) * ((Rebirth of (owner of (last triggering unit)))))))
-
teleport (last triggering unit) to (random position in Spawn) without interpolation (instant unit + camera movement)
However, it doesn’t work very well. (See in reply.)