Skip to content

Instantly share code, notes, and snippets.

View X39's full-sized avatar
:octocat:
Busy with reallife

Marco Silipo X39

:octocat:
Busy with reallife
View GitHub Profile
@X39
X39 / VehicleCrewDisplay
Last active August 29, 2015 14:23
VehicleCrewDisplay
/**
* @Param 1 - ACTION:
* STRING - String containing the action name, possible actions:
* - init
* - EH_KeyUp
* - EH_KeyDown
* - CreateDisplay
* - DestroyDisplay
* @Param 2 - PARAMETERS:
* ARRAY, see:
@X39
X39 / foo.sqf
Created May 20, 2015 23:00
Return concept
foo = {
private["___returnValue___", "___returnedValue___"];
___returnedValue___ = _this call {
scopeName "___returnScope___";
//works only with topMost scope but not lower scopes
if(false) exitWith {false};
if(true) then
{
@X39
X39 / gist:f149ef35484d6466fc4b
Last active February 24, 2022 04:48
ArmA 3, Show Playernames with Ranks on HUD
if(!isDedicated && hasInterface) then
{
addMissionEventHandler ["Draw3D", {
{
if(side _x == playerSide) then
{
_dst = (_x distance player);
_size = 1 - (_dst / 100);
_pos = position _x;
_pos set[2, (_pos select 2) + 2.25];