It DOES work fine! I know that. Im wondering WHY it works I am curious how the engine operates, why I cant run the while(1) loop directly within the action yet I can in the outside function...
EDIT: I guess the official term for it is program flow I am wondering in which order the engine will run these loops....