ps_UK", "H_Cap_red", "H_Cap_grn", "H_Cap_blu", "H_Cap_grn_BI", "H_Cap_blk_Raven", "H_Cap_blk_ION", "H_Bandanna_khk", "H_Bandanna_sgg", "H_Bandanna_cbr", "H_Bandanna_gry", "H_Bandanna_camo", "H_Bandanna_mcamo", "H_Bandanna_surfer", "H_Beret_blk", "H_Beret_red", "H_Beret_grn", "H_TurbanO_blk", "H_StrawHat", "H_StrawHat_dark", "H_Hat_blue", "H_Hat_brown", "H_Hat_camo", "H_Hat_grey", "H_Hat_checker", "H_Hat_tan"]; _headCount = count _headgear; _clothes = ["U_C_Poloshirt_blue","U_C_Poloshirt_burgundy","U_C_Poloshirt_redwhite","U_C_Poloshirt_salmon","U_C_Poloshirt_stripped","U_C_Poloshirt_tricolour","U_C_HunterBody_grn"]; if (isServer) then { BIS_randomSeed1 = []; BIS_randomSeed2 = []; _rnd1 = floor random 3; //Hotfix patch, We don't want players getting a 'random' hat, just our NPC's _this setVariable["BIS_randomSeed1",3,TRUE]; _rnd2 = floor random _headCount; _this setVariable ["BIS_randomSeed2", _rnd2, TRUE]; //Random clothing for our NPC's to add a bit of spice. if(local _this && !isPlayer _this) then { _uniform = _clothes call BIS_fnc_selectRandom; _this addUniform _uniform; }; }; waitUntil {!(isNil {_this getVariable "BIS_randomSeed1"})}; waitUntil {!(isNil {_this getVariable "BIS_randomSeed2"})}; _randomSeed1 = _this getVariable "BIS_randomSeed1"; _randomSeed2 = _this getVariable "BIS_randomSeed2"; if (_randomSeed1 < 2) then { _this addHeadgear (_headgear select _randomSeed2); //HEY BIS, THIS IS CARRYING A GLOBAL EFFECT, Y U DO THAT? };/* @file Version: 1a @file name: eventhandlers.sqf @file Author: TAW_Tonic @file edit: 4/14/2013 Copyright © 2013 Bryan Boardwine, All rights reserved See http://armafiles.info/life/list.txt for servers that are permitted to use this code. */ if(!isServer) exitWith {}; "life_fnc_MP_packet" addPublicVariableEventHandler {[_this select 0,_this select 1] call life_fnc_MPexec;};// In: marker // Out: position // Center point private ["_center","_centerX","_centerY"]; _center = getMarkerPos _this; _centerX = _center select 0; _centerY =