Difference between revisions of "Category:Eric's Mission Framework (EMF)"

From cluster wiki
Jump to navigation Jump to search
Line 2: Line 2:


== How to install ==
== How to install ==
if you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.
If you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.
 
== Event Scripts ==
EMF relies on your understanding of Arma 3's event scripts. Therefor i will list all of them underneath along with a short description. To see the initialization order see: [https://community.bistudio.com/wiki/Initialization_Order BI Wiki: Initialization Order]
 
=== init.sqf ===
mission initialization, executed on server side when mission is started (before briefing screen).
 
=== initPlayerLocal.sqf ===
JIP initialization, executed locally when player joins mission.
 
=== onPlayerKilled.sqf ===
Executed locally when player is killed in a singleplayer or in a multiplayer mission.
 
=== onPlayerRespawn.sqf ===
Executed locally when player respawns in a singleplayer or in a multiplayer mission with "BASE" respawn type.
 
=== init3DEN.sqf ===
Executed when loading a scenario in Eden Editor if the file is present. Useful for executing scenario-specific editor functionality. Not included in EMF but is mentioned here since it really helps when using color corrections.
 
== Init Scripts ==
Some scripts in EMF are run on mission initialization. I will list them underneath with a short description of what they do.
 
=== setSkill ===
A function that sets AI skills to use area suppression instead of accurate suppression
 
=== resizeMapMarkers ===
Keep marker size consistent, can be disabled by client.

Revision as of 09:39, 16 June 2021

This framework is merely just a collection of functions I've written for various CC missions over the last 2 years I've been in CC. It is a weird collection of spaghetti code and extremely buggy code overall that get's changed constantly to work better for a mission.

How to install

If you are fancy tech guy who has installed git you can just git clone this repository into your mission root directory, or if you aren't that fancy just download the zip and extract into your root mission directory.

Event Scripts

EMF relies on your understanding of Arma 3's event scripts. Therefor i will list all of them underneath along with a short description. To see the initialization order see: BI Wiki: Initialization Order

init.sqf

mission initialization, executed on server side when mission is started (before briefing screen).

initPlayerLocal.sqf

JIP initialization, executed locally when player joins mission.

onPlayerKilled.sqf

Executed locally when player is killed in a singleplayer or in a multiplayer mission.

onPlayerRespawn.sqf

Executed locally when player respawns in a singleplayer or in a multiplayer mission with "BASE" respawn type.

init3DEN.sqf

Executed when loading a scenario in Eden Editor if the file is present. Useful for executing scenario-specific editor functionality. Not included in EMF but is mentioned here since it really helps when using color corrections.

Init Scripts

Some scripts in EMF are run on mission initialization. I will list them underneath with a short description of what they do.

setSkill

A function that sets AI skills to use area suppression instead of accurate suppression

resizeMapMarkers

Keep marker size consistent, can be disabled by client.

Subcategories

This category has the following 2 subcategories, out of 2 total.