Skip to content

Instantly share code, notes, and snippets.

View Saborknight's full-sized avatar
🙃
Free as a bee

Saborknight Saborknight

🙃
Free as a bee
View GitHub Profile
@Saborknight
Saborknight / switchLights.sqf
Created March 16, 2020 08:57
Arma 3 script to turn lights on or off on a map
/**
* Turn lights off or on in a given radius from an object/trigger, or
* within the area of the trigger (if it has an area), or just on the entire
* map.
*
* _turnLightsOn Boolean (Optional) Turn them on or off?
* _trigger Object (Optional) The trigger or object that is
* the center of search area or whose area we
* use for object search
* _objects Number|Array (Optional) If array of objects, check
@Saborknight
Saborknight / exportLoadoutConfigs.sqf
Last active March 26, 2023 12:43
This is for exporting loadouts that are on a given group of units. This is formatted specifically for being pasted into the CfgVehicles of 2BNB factions present in 2BNB Extras.
/* ----------------------------------------------------------------------------
Function: exportLoadoutConfigs.sqf
Description:
Copies the loadouts of each unit in the group one by one, prompting to
continue after each units loadout is copied, to allow the user to paste
from the clipboard before continuing.
This function was designed to be used with `addAction` specifically, but
as long as the below parameters are satisfied, it can be called from
anywhere.
@Saborknight
Saborknight / After Effects Expressions - Anatomy of a Connection.js
Last active March 26, 2023 12:43
After Effects Script Snippets used inside the Compositions of my Motion Graphics Project
// For Randomisation of Value over time of a property
wiggle(5,5);
// For Country Path Layer (Iceland)
loopOut("cycle");
// OR
loopOut();
// (Since the default value is "cycle" anyway)
// To make the animation repeat from first frame each time, via jumping to it after last frame