BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Function|= Comments | |||
____________________________________________________________________________________________ | |||
| arma2 |= Game name | |||
|1.00|= Game version | |||
____________________________________________________________________________________________ | |||
| <pre> | |||
//------------------ | |||
// Purpose: Checks if a position lies within an angle sector | |||
// Arguments: [<center position>,<center angle of sector>,<sector width>,<position>] | |||
// Return: boolean | |||
// | |||
/* | |||
Returns true if <position> lies within the sector defined by <center position>, | |||
<center angle of sector> and <sector width>. Use this function to determine if | |||
a position lies within a certain angle from another position (ie the <center position>). | |||
Example: | |||
[position player,getdir player,30,position enemy_tank] call BIS_fnc_inAngleSector | |||
will return true if the vehicle named enemy_tank is within 30 degrees of where the player is pointing. | |||
*/ | |||
// Revision History: | |||
// 09/01/08 0.1 - First cut VBS2 | |||
//------------------ | |||
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description | |||
____________________________________________________________________________________________ | |||
| <!-- [] call [[BIS_fnc_inAngleSector]]; --> |= Syntax | |||
|p1= |= Parameter 1 | |||
| |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <code></code> |= | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Function Group: Geometry|{{uc:inAngleSector}}]] | |||
[[Category:Functions|{{uc:inAngleSector}}]] | |||
[[Category:{{Name|arma2}}: Functions|{{uc:inAngleSector}}]] | |||
[[Category:{{Name|arma2oa}}: Functions|{{uc:inAngleSector}}]] | |||
[[Category:{{Name|tkoh}}: Functions|{{uc:inAngleSector}}]] | |||
[[Category:{{Name|arma3}}: Functions|{{uc:inAngleSector}}]] |
Revision as of 16:11, 25 July 2014
Description
- Description:
//------------------ // Purpose: Checks if a position lies within an angle sector // Arguments: [<center position>,<center angle of sector>,<sector width>,<position>] // Return: boolean // /* Returns true if <position> lies within the sector defined by <center position>, <center angle of sector> and <sector width>. Use this function to determine if a position lies within a certain angle from another position (ie the <center position>). Example: [position player,getdir player,30,position enemy_tank] call BIS_fnc_inAngleSector will return true if the vehicle named enemy_tank is within 30 degrees of where the player is pointing. */ // Revision History: // 09/01/08 0.1 - First cut VBS2 //------------------
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note