Jump to content
Heeeere's johnny!

How to auto-run an addon on game start?

Recommended Posts

Hi,

 

I'm trying to get an addon to automatically run its fn_init.sqf when the player (or the server respectively) starts a mission. Now, in ArmA 3 this works with the "postInit" parameter in the CfgFunctions. The CfgFunctions for this script looks like this:

class CfgPatches {
    class AutomatedDoors {
        version = "2.5.a2oa";
        author = "Heeeere's Johnny!";
        units[] = {};
        weapons[] = {};
        requiredAddons[] = {};
    };
};

class CfgFunctions {
    class AutomatedDoors {
        class addon {
            file = "\automatedDoors";
            
            class init {
                postInit = 1;
            };
        };
    };
};

class CfgMods {
    author = 76561198062118808;
};

Afaik, "postInit" is a new thing in ArmA 3 which didn't exit in ArmA 2 yet. But there must be a possibility of running an addon after the game has started. I'd be glad if someone could point me into the right direction.

 

Have a nice Play!

Johnny

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×