- Joined
- Jul 29, 2007
- Messages
- 5,174
Now I wonderd about this for some time.
Im not really good at programming (more like a total noob), but I think I got how they work.
Each function is a little box of code, so the locals get set every time the box is activated right ?
So why when 2 units do something at the same time it won't set the local to only 1 of them ?
And why, say, when a unit casts a spell and the triggers work, then another unit casts that spell too while the first didn't finish it, why wouldn't it reset the locals and then set them to the new one while destroying the spell to the first one ?
Im not really good at programming (more like a total noob), but I think I got how they work.
Each function is a little box of code, so the locals get set every time the box is activated right ?
So why when 2 units do something at the same time it won't set the local to only 1 of them ?
And why, say, when a unit casts a spell and the triggers work, then another unit casts that spell too while the first didn't finish it, why wouldn't it reset the locals and then set them to the new one while destroying the spell to the first one ?