Hi Leute wollte mal wissen wie man die grüne Schrift über dem Kopf weg macht bei den cops steht immer Sanitäter über dem Kopf
ich nutzte die altis Version 3.1.4.8
Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.
Hi Leute wollte mal wissen wie man die grüne Schrift über dem Kopf weg macht bei den cops steht immer Sanitäter über dem Kopf
ich nutzte die altis Version 3.1.4.8
fn_playerTags.sqf
EDIT:
Huch, verlesen^^
Seit n paar Wochen ist es möglich den Schwierigkeitsgrad nach seinen Wünschen anzupassen. Main-Mission-Folder\User\Administrator(oder der Benutzername eben)\Administrator.Arma3Profile
#include <macro.h>
/*
File: fn_playerTags.sqf
Author: Bryan "Tonic" Boardwine
Description:
Adds the tags above other players heads when close and have visible range.
*/
private["_ui","_units"];
#define iconID 78000
#define scale 0.8
if(visibleMap OR {!alive player} OR {dialog}) exitWith {
500 cutText["","PLAIN"];
};
_ui = uiNamespace getVariable ["Life_HUD_nameTags",displayNull];
if(isNull _ui) then {
500 cutRsc["Life_HUD_nameTags","PLAIN"];
_ui = uiNamespace getVariable ["Life_HUD_nameTags",displayNull];
};
_units = nearestObjects[(visiblePosition player),["Man","Land_Pallet_MilBoxes_F","Land_Sink_F"],50];
_units = _units - [player];
{
private["_text"];
_idc = _ui displayCtrl (iconID + _forEachIndex);
if(!(lineIntersects [eyePos player, eyePos _x, player, _x]) && {!isNil {_x getVariable "realname"}}) then {
_pos = switch(typeOf _x) do {
case "Land_Pallet_MilBoxes_F": {[visiblePosition _x select 0, visiblePosition _x select 1, (getPosATL _x select 2) + 1.5]};
case "Land_Sink_F": {[visiblePosition _x select 0, visiblePosition _x select 1, (getPosATL _x select 2) + 2]};
default {[visiblePosition _x select 0, visiblePosition _x select 1, ((_x modelToWorld (_x selectionPosition "head")) select 2)+.5]};
};
_sPos = worldToScreen _pos;
_distance = _pos distance player;
if(count _sPos > 1 && {_distance < 1}) then {
_text = switch (true) do {
case ((!isNil {_x getVariable "name"} && playerSide == independent)): {format["<t color='#FF0000'><img image='a3\ui_f\data\map\MapControl\hospital_ca.paa' size='1.5'></img></t> %1",_x getVariable ["name","Unknown Player"]]};
case (_x in (units grpPlayer) && playerSide == civilian): {format["<t color='#00FF00'>%1</t>",(_x getVariable ["realname",name _x])];};
case (!isNil {(_x getVariable "rank")}): {format["<img image='%1' size='2'></img>%3 %2",switch ((_x getVariable "rank")) do {
case 2: {"\a3\ui_f\data\gui\cfg\Ranks\corporal_gs.paa"};
case 3: {"\a3\ui_f\data\gui\cfg\Ranks\sergeant_gs.paa"};
case 4: {"\a3\ui_f\data\gui\cfg\Ranks\captain_gs.paa"};
case 5: {"\a3\ui_f\data\gui\cfg\Ranks\major_gs.paa"};
case 6: {"\a3\ui_f\data\gui\cfg\Ranks\general_gs.paa"};
case 7: {"\a3\ui_f\data\gui\cfg\Ranks\colonel_gs.paa"};
case 8: {"\a3\ui_f\data\gui\cfg\Ranks\colonel_gs.paa"};
default {"\a3\ui_f\data\gui\cfg\Ranks\private_gs.paa"};
},_x getVariable ["realname",name _x],switch ((_x getVariable "rank")) do {
case 2: {"Wachtmeister"};
case 3: {"Polizeikommissar"};
case 4: {"Polizeioberkommissar"};
case 5: {"Polizeihauptkommissar"};
case 6: {"Bundespolizist"};
case 7: {"Polizeichef"};
case 8: {"Polizeirat"};
default {"Polizeianwärter"};
}]};
default {
if(!isNil {(group _x) getVariable "gang_name"}) then {
format["%1<br/><t size='0.8' color='#B6B6B6'>%2</t>",_x getVariable ["realname",name _x],(group _x) getVariable ["gang_name",""]];
} else {
_x getVariable ["realname",name _x];
};
};
};
if(_x getVariable ["DirectVON",false]) then {_text = "<t color='#00FF88'>[Spricht] " + _text};
_idc ctrlSetStructuredText parseText _text;
_idc ctrlSetPosition [_sPos select 0, _sPos select 1, 0.4, 0.65];
_idc ctrlSetScale scale;
_idc ctrlSetFade 0;
_idc ctrlCommit 0;
_idc ctrlShow true;
} else {
_idc ctrlShow false;
};
} else {
_idc ctrlShow false;
};
} foreach _units;
und wo genau ändere ich dort ab
Hast du auch den Edit von Motombo gelesen?
lol sry nein thx nochmals
Denke doch der Thread kann damit geschlossen werden.
[modclose][/modclose]