Server Sync Question

3 posts in this topic

A group of buddies and I are setting up our own server. We all have development backgrounds but very new to Arma and modding. I started writing my first script referencing several other addons. I have a drone that gets deployed to a Military Base when a players runs in it. I have checks in the script that do not send a drone if a drone is already deployed kind of thing. In one of the addon examples, I saw a method that appears to execute code on the server rather than the client. This has me wondering if I have coded my scripts wrong.

For my script, I have been using the Eden editor. I added a series of scripts that get initialized in the editor when the player loads. The plan was to have the server mission.sqm file initialize these scripts on the server. However, I am starting to think I dont understand where these scripts are executed. Are they downloaded to the client? If my boolean is set on one client that the drone has already been deployed, are all other clients updated to see that or are the variables client specific? For example, if I am in a party, we both run into the military base, will two drones get deployed because my code is client specific instead of server specific? Thanks!

About Exile Arma 3 Mod

It is the year 2039. After the resource depleting conflict in Greece, Europe suffers from a new deflation crisis, leading the crime rate to a new peak in history. Members of the North Atlantic Treaty Organization Security Council are forced to react. Being a desperate alternative to overcrowded and prohibitive prisons, offenders are now being sent to EXILE.