this is because of the gamestudio engine scheduler...
gamestudio runs functions until a wait instruction and then returns
even if the function is in a while loop
so you create a function which is used by more than one action, like minimaps etc.
also this function gets the my-pointer from the action


Visit my site: www.masterq32.de