BIS fnc isInFrontOf: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 9: | Line 8: | ||
|gr2 = Geometry |GROUP2= | |gr2 = Geometry |GROUP2= | ||
| Check if an object is in front of another object (in the front 180°) |DESCRIPTION= | | Check if an object is in front of another object (in the front 180°) |DESCRIPTION= | ||
| [reference, checked, offset] call [[BIS_fnc_isInFrontOf]] |SYNTAX= | | [reference, checked, offset] call [[BIS_fnc_isInFrontOf]] |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>_isInstructorInFrontOfPlayer = [<nowiki/>[[player]], instructor, 0] [[call]] [[BIS_fnc_isInFrontOf]];</code> |EXAMPLE1= | |x1= <code>_isInstructorInFrontOfPlayer = [<nowiki/>[[player]], instructor, 0] [[call]] [[BIS_fnc_isInFrontOf]];</code> |EXAMPLE1= | ||
| [[getRelDir]] [[BIS_fnc_isInsideArea]] |SEEALSO= | | [[getRelDir]] [[BIS_fnc_isInsideArea]] |SEEALSO= |
Revision as of 23:32, 16 January 2021
Description
- Description:
- Check if an object is in front of another object (in the front 180°)
- Execution:
- call
- Groups:
- Object ManipulationGeometry
Syntax
- Syntax:
- [reference, checked, offset] call BIS_fnc_isInFrontOf
- Parameters:
- reference: Object - the reference object
- checked: Object - the object that has to be in front of reference
- offset: Number - (Optional, default 0) allows to check from offset meters in front of (positive), or behind (negative) reference
- Return Value:
- Boolean
Examples
- Example 1:
_isInstructorInFrontOfPlayer = [player, instructor, 0] call BIS_fnc_isInFrontOf;
Additional Information
- See also:
- getRelDir BIS_fnc_isInsideArea
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