I've figured out where is the problem after I made a light version of my project (see attached file) : There is a problem in my events order.
The order should be :
event 4 (function setRestrictions)
event 9 (only when event 4 is finished)
event 10 (only when event 9 is finished)
Question is : how do I know when a function has ended?
Should I use a return value? How can I compare this return value to execute another function?
Or if you have another idea...