In any script, a hook can be registered, depending on the task set, the only rule in contrast to the global script (which is constantly in memory) it is not necessary to register and unregister the hook whenever you enter the map and leave it, because the scripts bound to the map object are...