Hooty Posted May 31, 2017 Report Share Posted May 31, 2017 Does anyone know how to log grim esp in infistar I have tried this but nothing. Spoiler admin_fnc_esp = { if(" Grim ESP" in admin_toggled)then{ admin_toggled=admin_toggled-[" Grim ESP"];call fnc_bruno_esp; };call admin_init; fnc_espSHOW = { disableSerialization; {_x ctrlShow false;_x ctrlEnable false;} forEach ctrlarray; _camPos = positionCameraToWorld [0,0,0]; { if(visibleMap)exitWith{}; _veh = vehicle _x; _pos = ASLtoATL eyepos _x; _dist = _camPos distance _pos; _pos2D = worldToScreen _pos; if(count _pos2D != 0)then { _dist = round _dist; _text = format['<t size=''0.45'' color=''#0B80FF''>%1 (%2m)</t>',name _x,_dist]; if(_x != _veh)then { _crewnames = ''; { _namex = name _x; if(_crewnames == '')then { _crewnames = format['%1',_namex]; } else { _crewnames = format['%1, %2',_crewnames,_namex]; }; } forEach (crew _veh); _text = format['<t size=''0.45'' color=''#FF5926''>%1 (%2m) %3</t>',_crewnames,_dist,typeOf _veh]; }; _ctrl = ctrlarray select _forEachIndex; _ctrl ctrlEnable true;_ctrl ctrlShow true; _ctrl ctrlSetStructuredText (parseText _text); _ctrl ctrlSetPosition [(_pos2D select 0) - (safezoneW / 2), (_pos2D select 1)-0.05, safezoneW, safezoneH]; _ctrl ctrlSetFade (_dist/fnc_esp_distance)+.2; _ctrl ctrlCommit 0; }; } forEach ESP_UNIT_ARR; }; disableSerialization; if(isNil'ctrlarray')then { ctrlarray = []; for '_i' from 0 to 100 do { (random 9999) cutRsc ['rscDynamicText', 'PLAIN']; _ctrl = ((uiNameSpace getVariable 'BIS_dynamicText') displayctrl 9999); ctrlarray = ctrlarray + [_ctrl]; }; }; if(isNil'fnc_esp_stateT')then { fnc_esp_stateT = [] spawn { _puid = getPlayerUID player; while{true}do { ESP_UNIT_ARR=[]; _pos = getPos (vehicle player); { if((getPlayerUID _x != _puid)&&(alive _x))then { if(_pos distance _x < 1200)then { ESP_UNIT_ARR=ESP_UNIT_ARR+[_x]; }; }; } forEach playableUnits; uiSleep 2; }; }; fnc_esp_distance = 1200; setGroupIconsVisible [true, false]; onEachFrame {call fnc_espSHOW;}; cutText ['ESP ON', 'PLAIN DOWN']; _sl = format["%1 GrimIcons Activated",_nameP]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; } else { terminate fnc_esp_stateT;fnc_esp_stateT=nil; setGroupIconsVisible [true, true]; onEachFrame {}; cutText ['ESP OFF', 'PLAIN DOWN']; _sl = format["%1 GrimIcons Deactivated",_nameP]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; }; {_x ctrlShow false;_x ctrlEnable false;} forEach ctrlarray; }; DieTanx 1 Link to comment Share on other sites More sharing options...
0 RedLink Posted June 1, 2017 Report Share Posted June 1, 2017 _sl = format["%1 GrimIcons Deactivated",_nameP]; change to _sl = format["%1 GrimIcons Activated",name player]; Hooty and DieTanx 2 Link to comment Share on other sites More sharing options...
0 Hooty Posted June 1, 2017 Author Report Share Posted June 1, 2017 12 hours ago, RedLink said: _sl = format["%1 GrimIcons Deactivated",_nameP]; change to _sl = format["%1 GrimIcons Activated",name player]; omg thank you life saver bout to test it DieTanx 1 Link to comment Share on other sites More sharing options...
0 Hooty Posted June 2, 2017 Author Report Share Posted June 2, 2017 18 hours ago, RedLink said: _sl = format["%1 GrimIcons Deactivated",_nameP]; change to _sl = format["%1 GrimIcons Activated",name player]; still does not log :( DieTanx 1 Link to comment Share on other sites More sharing options...
0 RedLink Posted June 2, 2017 Report Share Posted June 2, 2017 Very strange. Well then, try this: fnc_esp_distance = 1200; setGroupIconsVisible [true, false]; onEachFrame {call fnc_espSHOW;}; cutText ['ESP ON', 'PLAIN DOWN']; _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;}; _sl = format["%1 GrimIcons Activated",_nameP]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; } else { terminate fnc_esp_stateT;fnc_esp_stateT=nil; setGroupIconsVisible [true, true]; onEachFrame {}; cutText ['ESP OFF', 'PLAIN DOWN']; _nameP = 'DEAD';if((alive player)&&(getPlayerUID player != ''))then{_nameP = name player;}; _sl = format["%1 GrimIcons Deactivated",_nameP]; PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; Link to comment Share on other sites More sharing options...
0 salival Posted June 2, 2017 Report Share Posted June 2, 2017 Find this line in AT.sqf: if(isNil "RENDER_ESP")then{RENDER_ESP = false;}; Add this line after it: _sl = ""; Find this line in AT.sqf: systemChat "ESP ON!"; Add this line after it: _sl = format["%1 ESP ON!",name player]; Find this line in AT.sqf: systemChat "ESP OFF!"; Add this line after it: _sl = format["%1 ESP OFF!",name player]; Find this code block in that function: onEachFrame {}; }; Add this after it: PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; Hooty 1 Link to comment Share on other sites More sharing options...
0 oldmatechoc Posted June 4, 2017 Report Share Posted June 4, 2017 this is what worked for me https://pastebin.com/raw/6SFCwfAW Link to comment Share on other sites More sharing options...
0 Hooty Posted June 4, 2017 Author Report Share Posted June 4, 2017 On 6/2/2017 at 6:58 AM, salival said: Find this line in AT.sqf: if(isNil "RENDER_ESP")then{RENDER_ESP = false;}; Add this line after it: _sl = ""; Find this line in AT.sqf: systemChat "ESP ON!"; Add this line after it: _sl = format["%1 ESP ON!",name player]; Find this line in AT.sqf: systemChat "ESP OFF!"; Add this line after it: _sl = format["%1 ESP OFF!",name player]; Find this code block in that function: onEachFrame {}; }; Add this after it: PVAH_WriteLogReq = [player,toArray _sl]; publicVariableServer 'PVAH_WriteLogReq'; Thanks it works Im using @oldmatechoc way though both work perfect. DieTanx 1 Link to comment Share on other sites More sharing options...
Question
Hooty
Does anyone know how to log grim esp in infistar I have tried this but nothing.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now