"and for mods" - hmm, then it's more complicated... I haven't made mods yet (only through maps) =)
Added 1 minute ago
in general, I always thought that such a scripting function exists. Indeed, it's unexpected that it hasn't been implemented yet...
New here? I'm Roha — want a quick tour?