{"name":"BIS_fnc_priorityQueue_GetHighestPriority","operator":null,"title":"BIS fnc priorityQueue GetHighestPriority","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_priorityQueue_GetHighestPriority","revid":274107,"updated":"2021-06-13T01:16:43Z","groups":["Priority Queue"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.86"}],"since":{"game":"arma3","name":"Arma 3","version":"1.86"},"arma3_since":"1.86","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Get the highest priority in the queue","syntaxes":[{"syntax":"[] call BIS_fnc_priorityQueue_GetHighestPriority","since":null,"effect":null,"exec":null,"params":[{"name":"_handle","type":"Number","types":["Number"],"optional":false,"default":null,"description":"Queue handle (get it with BIS_fnc_PriorityQueue_Init)","since":null,"text":"INT - Queue handle (get it with BIS_fnc_PriorityQueue_Init)","source":"docblock"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"_priority:SCALAR - the priority","source":"docblock"}}],"examples":[{"text":"```sqf\n_myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;\n```","code":["_myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Priority Queue","Functions","Introduced with Arma 3 version 1.86"],"docblock":{"author":"Zozo","description":"Get the highest priority in the queue","params":[{"index":null,"name":"_handle","types":["Number"],"optional":false,"default":null,"description":"Queue handle (get it with BIS_fnc_PriorityQueue_Init)","text":"INT - Queue handle (get it with BIS_fnc_PriorityQueue_Init)"}],"returns":{"types":["Number"],"text":"_priority:SCALAR - the priority"},"examples":["_myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;"],"syntax":"_item:ANY = [_handle] call BIS_fnc_PriorityQueue_GetHighestPriority;","execution":null,"notes":null,"requirements":null,"meta":{},"text":"Author: Zozo\n\nDescription:\nGet the highest priority in the queue\n\nParameters:\n_handle:INT - Queue handle (get it with BIS_fnc_PriorityQueue_Init)\n\nReturns:\n_priority:SCALAR - the priority\n\nSyntax:\n_item:ANY = [_handle] call BIS_fnc_PriorityQueue_GetHighestPriority;\n\nExample:\n_myItem = [_priorityQueue_1] call BIS_fnc_PriorityQueue_PopItem;"},"filled_from_docblock":["description","params","returns","examples"]}