wait is our friend if used well. The bug is that the value is not changed for the automatic variable... But I think that JustSid nailed the reason for this behavior and it is something that I had not considered. What I am doing is trying to work around the situation where I would have more that one instance of a function running and need to wait for a specific instance to finish. The macros wait_for and wait_for_my will not work in this case as more than one instance is running and the functions do not have an entity pointer. Guess I will have to use global memory and write a set of semaphore functions to manage a list of semaphores...

Thanks Guys


Our new web site:Westmarch Studios