-
Notifications
You must be signed in to change notification settings - Fork 19
Mission initialization
cScripts make use of CBA pre and post-init this to allow usage of CBA Settings.
The pre init hold the CBA Settings and global variables allowing eden to access them. This also means that code can be loaded in eden editor. The ACE Arsenal loadouts is one such example.
On mission start the pre init is loaded setting up the global variables. Then Init is executed, after this post init.
NOTE In a single player environment init runs twise. First time before pre init and then after. This means that you need a check to stop this from loading in sp.
When on the map screen more or less everything is setup. When you launch, your loadout is applied togheter with your abilities.
Here is the basic initialization order when mission is loaded on the server.
- Mission load screen
- cScripts Pre-init
- Init
- Object init fields
- cScripts Post-init
- Mission map screen
- Player Loadout is applied (First load)
Once the mission have reached the mission screen the loadout is applied to the players. If you join a server mid mission this will be applied once you selected a spawn or when you exit the map.
7th Cavalry Gaming 2018. | Maintained by S3 1BN Scripting Department