BIS fnc isInFrontOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page filling)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=


|p1= reference: [[Object]] - the reference object |= Parameter 1
|p1= reference: [[Object]] - the reference object |= Parameter 1
Line 18: Line 18:
|p3= offset: [[Number]] - (Optional, default 0) allows to check from ''offset'' meters in front of (positive), or behind (negative) ''reference'' |= Parameter 3
|p3= offset: [[Number]] - (Optional, default 0) allows to check from ''offset'' meters in front of (positive), or behind (negative) ''reference'' |= Parameter 3


| [[Boolean]] |= Return value
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 24: Line 24:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getRelDir]] |= See also
| [[getRelDir]] |SEEALSO=
}}
}}



Revision as of 12:29, 7 April 2019

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:
Uncategorised

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

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

Notes

Bottom Section