precision: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "|r1=$1 |x1=")
Line 13: Line 13:
|p1= entity: [[Object]]
|p1= entity: [[Object]]


| [[Number]]
|r1= [[Number]]


|x1= <code>[[if]] ([[position]] _this [[distance]] _dangerPos <= [[precision]] _this) [[then]] {...};
|x1= <code>[[if]] ([[position]] _this [[distance]] _dangerPos <= [[precision]] _this) [[then]] {...};

Revision as of 15:19, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
entity: Object
Return Value:
Number

Examples

Example 1:
if (position _this distance _dangerPos <= precision _this) then {...}; //used in formationCDanger.fsm

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