I'll look into the workshops, but now I am the one who is confused. All I did was make a map in WED, then write a script in SED, assigned the script to my map through map properties, then assigned the action to my entity and it does not do what I want it to do, even your code had the same effect. Is there maybe some stupid beginners mistake I made making WED always use a template or something?