BIS fnc isInFrontOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma2 * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= arma2 |version1= $1 |game2")
m (Text replacement - " \[\[Category:\{\{Name|[a-z0-9]+\}\}: Functions\|\{\{uc:[a-zA-Z0-9]+\}\}\]\]" to "")
Line 33: Line 33:
|seealso= [[getRelDir]] [[BIS_fnc_isInsideArea]]
|seealso= [[getRelDir]] [[BIS_fnc_isInsideArea]]
}}
}}
 
||||
[[Category:{{Name|arma2}}: Functions|{{uc:isInFrontOf}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:isInFrontOf}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:isInFrontOf}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isInFrontOf}}]]

Revision as of 23:58, 16 June 2021

Hover & click on the images for description

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

||||