BIS fnc isInFrontOf: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| arma2 \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ") |
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=") |
||
Line 27: | Line 27: | ||
|p3= offset: [[Number]] - (Optional, default 0) allows to check from ''offset'' meters in front of (positive), or behind (negative) ''reference'' | |p3= offset: [[Number]] - (Optional, default 0) allows to check from ''offset'' meters in front of (positive), or behind (negative) ''reference'' | ||
| [[Boolean]] | \|r1= [[Boolean]] | ||
|x1= <code>_isInstructorInFrontOfPlayer = [<nowiki/>[[player]], instructor, 0] [[call]] [[BIS_fnc_isInFrontOf]];</code> | \|x1= <code>_isInstructorInFrontOfPlayer = [<nowiki/>[[player]], instructor, 0] [[call]] [[BIS_fnc_isInFrontOf]];</code> | ||
|seealso= [[getRelDir]] [[BIS_fnc_isInsideArea]] | |seealso= [[getRelDir]] [[BIS_fnc_isInsideArea]] |
Revision as of 10:25, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Object ManipulationGeometry
Syntax
- Syntax:
- Syntax needed
- 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