{"name":"BIS_fnc_inAngleSector","operator":null,"title":"BIS fnc inAngleSector","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_inAngleSector","revid":337353,"updated":"2023-01-18T17:06:32Z","groups":["Geometry"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Checks if a position lies within an angle sector.","syntaxes":[{"syntax":"[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector","since":null,"effect":null,"exec":null,"params":[{"name":"center","type":"Array","optional":false,"default":null,"description":"center position","types":["Array"],"since":null,"text":"center : Array - center position"},{"name":"centerAngle","type":"Number","optional":false,"default":null,"description":"defines the center angle of the sector","types":["Number"],"since":null,"text":"centerAngle : Number - defines the center angle of the sector"},{"name":"sectorWidth","type":"Number","optional":false,"default":null,"description":"defines the width of the sector in degrees","types":["Number"],"since":null,"text":"sectorWidth: Number - defines the width of the sector in degrees"},{"name":"position","type":"Array","optional":false,"default":null,"description":"the position which should be checked","types":["Array"],"since":null,"text":"position: Array - the position which should be checked"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if the position lies within the defined sector","text":"Boolean - true if the position lies within the defined sector"}}],"examples":[{"text":"```sqf\n[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;\n```","code":["[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_isInFrontOf"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Geometry","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}