Skip to content

Instantly share code, notes, and snippets.

Arma 3 Discord Rich Presence

Show what you're playing in Arma 3 with Discord Rich Presence.

Features

  • Simple plug and play, works on every mission.
  • Automatically activate rich presence as soon as the client spawns in.
  • Update rich presence information instantly using SQF.
  • SP/MP Compatible.
// moved to https://github.com/ConnorAU/A3UserInputMenus/wiki/CAU_UserInputMenus_fnc_progressBar
private _serverQuery = {
params ["_clientQuery","_serverQueryReturn","_clientReturn"];
// hopefully unique temporary variable
private _variable = format["serv_fps_query_%1",diag_tickTime];
// create array for players to insert their fps into
private _players = call BIS_fnc_listPlayers;
private _returns = [];
_returns resize (count _players + 1);
/*──────────────────────────────────────────────────────┐
│ Author: ConnorAU │
│ Steam: https://steamcommunity.com/id/_connor │
│ Github: https://github.com/ConnorAU │
│ │
│ Please do not modify or remove this comment block │
└──────────────────────────────────────────────────────*/
#define BASE_WEATHER_CHANGE_TIME (7*60)
#define RAND_WEATHER_CHANGE_TIME (5*60)
/*
Author: Karel Moricky
Description:
Export list of addons for Community Wiki
https://community.bistudio.com/wiki/Category:Arma_3:_Assets
Parameter(s):
0: ARRAY of STRINGs - list of CfgPatches classes
@ConnorAU
ConnorAU / displayEventCfgExport.sqf
Created January 29, 2020 21:34
Generate a config of all display events in the arma 3 config file
/*──────────────────────────────────────────────────────┐
│ Author: Connor │
│ Steam: https://steamcommunity.com/id/_connor │
│ Github: https://github.com/ConnorAU │
│ │
│ Please do not modify or remove this comment block │
└──────────────────────────────────────────────────────*/
private _timeStartTick = diag_ticktime;
diag_log 'export start';