-
Notifications
You must be signed in to change notification settings - Fork 6
Common Events
Coryf88 edited this page Jul 3, 2022
·
4 revisions
As with most games, ArmA has several events that are triggered according to what goes within the mission. The Framework saves you some work, and includes a few of those in already assigned scripts which you can easily edited.
If you're new to Event Handlers, read this page in the BI Wiki.
mission/custom-scripts/init.sqf | |
This script will be run for both the server and players. | |
Default | Nothing. |
mission/custom-scripts/initPlayer.sqf | |
This script will be run only for the Players. | |
Default | Nothing. |
mission/custom-scripts/initServer.sqf | |
This script will be run only for the Server. | |
Default | Nothing. |
framework/engine/events/fn_onAIKilled.sqf | |
Executes whenever an AI unit is killed. | |
Default | Spawns script for body removal and adds a point to the killing side. |
framework/engine/events/fn_initAI.sqf | |
Initializes all relevant scripts to AI spawned. | |
Default | Assigns the proper mission gear. Adds Event Handlers. Assigns civilian casualties. Assigns the unit as "loaded". |
framework/engine/events/fn_initPlayer.sqf | |
Initializes all relevant scripts to players who join the mission. | |
Default | Logs players joining. Assigns JIP status. Removes unwanted JIPs. Synchronizes Time with the server. Removes spectators. Assigns Loadout. Initializes relevant variables. Adds Event Handlers. Changes the player unit's color. Assigns the unit as "loaded". |
framework/engine/events/fn_initSpectator.sqf | |
Initializes all units who slot as Spectators. | |
Default | Initializes the relevant spectator mode of preference. |
framework/engine/events/fn_onPlayerKilled.sqf | |
Executes whenever a player unit is killed. | |
Default | Adds a point to the killing side. |
framework/engine/events/fn_onPlayerRespawn.sqf | |
Executes whenever a player respawns. | |
Default | Nothing. |
Maintained by BromA - ArmA for the refined autist.