I believe the problem is here
Functions ending with ..._startup are executed right after the main() function, and LC before the engine and video device is initialized. This way, every script can have its own startup function which initializes its variables or objects. Example:
Found under Script Programming -> Functions
So name the action diffrent
muffel