-
Notifications
You must be signed in to change notification settings - Fork 54
Execute Code
This page is dedicated to the "Execute Code" module. This module allows you executing scripts and thus, also implementing Custom Modules.
The "Execute Code" module is very powerful for a Zeus with knowledge of scripting. With great power there also comes responsibility.
If you do not want to enable the module for anyone, you can block the module with the code below (local execution):
missionNamespace setVariable ['Ares_Allow_Zeus_To_Execute_Code', false, true];
You can either execute that line with the “Execute Code” module yourself or add the line below in your init.sqf in the mission folder:
if (local player) then { missionNamespace setVariable ['Ares_Allow_Zeus_To_Execute_Code', false]; };
Note that the module will still be available for admins (since V.0.0.5).
There are two arguments available for your script:
- _this select 0 ARRAY Returns position AGLS where the module was placed.
- _this select 1 OBJECT Returns ObjNull or the object on which the module was placed.
You can assign a global variable to an object with the "Bind Variable to Object" module.
These variables are then available in the "Execute Code" module.
The "mode" combo box allows specifying for which machines your script shall be executed:
- local: only executes the code on your machine.
- server: only executes the code on the server.
- global: Executes the code on all machines (clients & server).
- global & JIP: Executes the code on all machines (clients & server) and in addition for JIPs (since V.0.0.5).
Note that the module logic (icon on map) does not disappear if you include JIP. In the case you delete the module logic, your script will be removed from the JIP queue and thus it will no longer be executed for future JIPs.
Achilles
Discuss topic | BIS forum | Create an issue
- Home
- About the Add-on (external link)
- Add-on Configuration
- Ares Wiki (external link)
Considerations for Reinforcement Module- Custom Modules
- Custom Music
- Execute Code
- FAQ
- Informative Module Icons
- Key Assignements
- Module Information
- Recommended Add-ons
- Restrict Code Execute
- Selection Option
Tips and Tricks- Using ACE3
- Zeus Guides
- Zeus Setup