Cryten Posted November 30, 2013 Report Share Posted November 30, 2013 I'm trying that nameplates sees only in the savezone. // Created by Skaronator - http://www.skaronator.com - Version 1.3 // Edited by Cryten - http://www.hhjgaming.de - Version 1.0 // thx to all Epoch Developer // Add to Mission Sensor: inTags = true; to Enable and inTags = false; to disable private ["_maxRange","_humanitycheck","_humanity","_skaroTag","_cursorTarget","_bandit","_hero","_color","_string","_targetControl","_untrustworthy"]; if (isNil "inTags") then { inTags = false; }; while {true} do { waitUntil { inTags }; waitUntil { !isNull player }; _display = uiNamespace getVariable 'DAYZ_GUI_display'; _maxRange = 15; _humanitycheck = true; _bandit = -5000; _untrustworthy = 1000; _hero = 5000; _humanity = 2500; _targetControl = _display displayCtrl 1199; _string = ""; dayz_humanitytarget = ""; _humanityTarget = cursorTarget; if (!isNull _humanityTarget and isPlayer _humanityTarget and alive _humanityTarget) then { _distance = (player distance _humanityTarget); if (_distance < _maxRange) then { _size = (1-(floor(_distance/5)*0.1)) max 0.1; _humanity = _humanityTarget getVariable ["humanity",0]; if (_humanitycheck) then { _color = "color='#ffffff'"; if(_humanity < _bandit) then { _color = "color='#ff0000'"; } else { if(_humanity < _untrustworthy) then { _color = "color='#ff9900'"; } else { if(_humanity > _hero) then { _color = "color='#3333ff'"; }; }; } else { _color = "color='#ffffff'"; }; _string = format["<t %2 align='center' size='%3'>%1</t>",(name _humanityTarget),_color,_size]; }; }; if (dayz_humanitytarget != _string) then { _targetControl ctrlSetStructuredText (parseText _string); dayz_humanitytarget = _string; }; sleep 0.5; }; waitUntil { !inTags }; }; somewhere there is an error in it .... just who .. :( best regtards Cryten aporbmymnspab 1 Link to comment Share on other sites More sharing options...
0 vbawol Posted November 30, 2013 Report Share Posted November 30, 2013 Unless I am missing something you should be able to just add this to the triggers: expActiv = player setVariable["DZE_display_name",true,true]; expDesactiv = player setVariable["DZE_display_name",false,true]; class Item2 { position[]={11447.472,317.26886,11364.504}; a=100; b=100; activationBy="WEST"; repeating=1; interruptable=1; age="UNKNOWN"; name="zoneklen"; expCond="(player distance zoneklen) < 100;"; expActiv="TitleText[""Now entering trader city Klen"",""PLAIN DOWN""]; canbuild = false; player setVariable[""DZE_display_name"",true,true];"; expDesactiv="TitleText[""Now leaving trader city Klen"",""PLAIN DOWN""]; canbuild = true; player setVariable[""DZE_display_name"",false,true];"; class Effects { }; }; MatthewK 1 Link to comment Share on other sites More sharing options...
0 Cryten Posted November 30, 2013 Author Report Share Posted November 30, 2013 so simple ? :D Link to comment Share on other sites More sharing options...
Question
Cryten
I'm trying that nameplates sees only in the savezone.
Link to comment
Share on other sites
2 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