ShootingBlanks
OpenDayZ Guru!
a few errors in there i think
i put the code online so we had line numbers
https://gist.github.com/anonymous/e03b125ae26d67f12c7f
line 7 at the end ... foreach _x
you have removed the array of nearestobjects that contains the list of players. thats what is supposed to loop foreach.
line 8 ... first parmeter of targetsquery is supposed to be an object but you are passing it an array of objects.
if you want to use targetquery, use it lastly to check if they see the player before attacking. since dogs can track by scent i would say they always see player and this is unneeded.
line 9 .. che king is alive _prey ... thats an array, you meant _x
battery dead ... later
i put the code online so we had line numbers
https://gist.github.com/anonymous/e03b125ae26d67f12c7f
line 7 at the end ... foreach _x
you have removed the array of nearestobjects that contains the list of players. thats what is supposed to loop foreach.
line 8 ... first parmeter of targetsquery is supposed to be an object but you are passing it an array of objects.
if you want to use targetquery, use it lastly to check if they see the player before attacking. since dogs can track by scent i would say they always see player and this is unneeded.
line 9 .. che king is alive _prey ... thats an array, you meant _x
battery dead ... later