avdieking Posted March 26, 2014 Report Share Posted March 26, 2014 insertcoins check your server.rpt maybe you forgot something Link to comment Share on other sites More sharing options...
insertcoins Posted March 26, 2014 Report Share Posted March 26, 2014 I did actually. No noticeable errors regarding the script or AH. Might be a namalsk thing (like a lot is), but I'll let you know when I tested the shorter sleepcycle! Link to comment Share on other sites More sharing options...
avdieking Posted March 26, 2014 Report Share Posted March 26, 2014 then check your arma2oa client rpt ->appdata/local/arma2oa/arma2oa.rpt Link to comment Share on other sites More sharing options...
avdieking Posted March 26, 2014 Report Share Posted March 26, 2014 changed some things new tutorial add this adminadd = adminadd + [" Hunted Player",huntedPlayer,"0","0","0","1",[0,0.8,1,1]]; adminadd = adminadd + [" Delete Hunted Marker",delhuntedPlayer,"0","0","0","1",[0,0.8,1,1]]; after adminadd = adminadd + [" Teleport To Player",admintele,"0","0","0","1",[0,0.8,1,1]]; huntedPlayer = { { if (name _x == _this select 0) then { _pos = getPosATL (vehicle _x); [_x] spawn playerMark; hint format ["%1 marked on Map",name _x]; cutText [format["%1 marked on Map",name _x], "PLAIN"]; _savelog = format["%1 Marked %2 on map",name player,_this select 0]; PVAH_WriteLogReq = [_savelog]; publicVariableServer "PVAH_WriteLogReq"; }; } forEach playableUnits; }; delhuntedPlayer = { huntedMarker = false; publicVariableServer "huntedMarker"; hint format ["Marker will be deleted in the next 2 Min!"]; cutText [format["Marker will be deleted in the next 2 Min!"], "PLAIN"]; _savelog = format["Marker Deleted"]; PVAH_WriteLogReq = [_savelog]; publicVariableServer "PVAH_WriteLogReq"; }; playerMark = { private ["_marked","_marker","_player","_getPosPlayer"]; huntedMarker = true; publicVariableServer "huntedMarker"; _player = _this select 0; _getPosPlayer = getPos _player; _marker = createMarker ["Player", _getPosPlayer]; _marker setMarkerType "mil_destroy"; _marker setMarkerSize [1.25, 1.25]; _marker setMarkerColor "ColorRed"; _marker setMarkerText "Hunted"; _marked = true; while {_marked} do { if (!((alive _player) && (huntedMarker))) then { _marked = false; }; _getPosPlayer = getPos _player; _marker setMarkerPos (_getPosPlayer); sleep 120; }; deleteMarker _marker; }; after admintele = { { if (name _x == _this select 0) then { _pos = getPosATL (vehicle _x); _dir = direction (vehicle _x); _distance = -1; if (player != vehicle player) then {_distance = -8;}; _pos = [(_pos select 0)+_distance*sin(_dir),(_pos select 1)+_distance*cos(_dir),(_pos select 2)]; (vehicle player) setPosATL _pos; (vehicle player) setDir _dir; hint format ["Moving to %1",name _x]; cutText [format["Moving to %1",name _x], "PLAIN"]; _savelog = format["%1 Moving to %2",name player,_this select 0]; PVAH_WriteLogReq = [_savelog]; publicVariableServer "PVAH_WriteLogReq"; }; } forEach playableUnits; }; Link to comment Share on other sites More sharing options...
avdieking Posted March 26, 2014 Report Share Posted March 26, 2014 the marker deleting takes sometimes a bit longer as 2 minutes Link to comment Share on other sites More sharing options...
avdieking Posted March 27, 2014 Report Share Posted March 27, 2014 add this !="huntedMarker" to publicvariable.txt at line 2 at the end Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2014 Report Share Posted March 27, 2014 Hi, why would you wanna delete the marker? Souldn´t he be hunted until he is dead? Link to comment Share on other sites More sharing options...
Sukkaed Posted March 27, 2014 Report Share Posted March 27, 2014 Looks more like it updates the marker position every 2 minutes and deletes it only when "hunted" is dead. Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2014 Report Share Posted March 27, 2014 Looks more like it updates the marker position every 2 minutes and deletes it only when "hunted" is dead. oh ok thanks. well as i said i am going to test it. Yesterday was a pretty bussy day for me. Link to comment Share on other sites More sharing options...
avdieking Posted March 27, 2014 Report Share Posted March 27, 2014 i made a menu where you can delete the marker again Link to comment Share on other sites More sharing options...
insertcoins Posted March 28, 2014 Report Share Posted March 28, 2014 Ok I get the text saying I marked the player, but not marker appears on the map. Link to comment Share on other sites More sharing options...
avdieking Posted March 28, 2014 Report Share Posted March 28, 2014 read your error.rpt client and server side Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2014 Report Share Posted March 31, 2014 Works fine for me with the tutorial above! Thanks @avdieking ! Great work :) ! Link to comment Share on other sites More sharing options...
Falcon911 Posted March 31, 2014 Report Share Posted March 31, 2014 Works, Also found out that you can only choose 1 player at a time. Link to comment Share on other sites More sharing options...
Rythron Posted April 8, 2014 Report Share Posted April 8, 2014 How do you add this without AH ? Link to comment Share on other sites More sharing options...
calamity Posted April 20, 2014 Report Share Posted April 20, 2014 How do you add this without AH ? Yes could some1 share instructions how to install without AH Link to comment Share on other sites More sharing options...
FoRcE72 Posted April 24, 2014 Report Share Posted April 24, 2014 Yes could some1 share instructions how to install without AH Please Link to comment Share on other sites More sharing options...
insertcoins Posted April 24, 2014 Report Share Posted April 24, 2014 take the script and save it as playerselect.sqf in your custom folder private ["_unit","_marker"]; _unit = playableUnits select floor(random count playableUnits);_marker = createMarker ["Player", position _unit]; _marker setMarkerType "mil_destroy"; _marker setMarkerSize [1.25, 1.25]; _marker setMarkerColor "ColorRed"; _marker setMarkerText "Hunted"; while {alive _unit} do { _marker setMarkerPos (position _unit); sleep 120; }; use a menu that is only usable with your (or selected) UID. For info on this look at some info on the forums On the top of my head: waituntil {!isnull (finddisplay 46)}; sleep 15; if ((getPlayerUID player) in ["#########","#########"]) then { playerselect = player addaction [("<t color=""#ff8810"">" + ("Playahselectah") +"</t>"),"custom\playerselect.sqf","",5,false,true,"",""]; } else { player removeAction playerselect; }; save this as playerselectmain.sqf and place it in your custom folder in your init add: []execvm "custom/playerselectmain.sqf" This is all untested and written whilst at work, so don't might not work but ok Link to comment Share on other sites More sharing options...
ALKINDA Posted February 28, 2015 Report Share Posted February 28, 2015 is there a way to incorporate DZAI's hunting player with ai? it would be cool to have ai spawning randomly only after one person, kind of to see how long they can last. click person > hunt = mark player on map and have dzai ai hunt him till deleted or dead. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now