surfaceNormal

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.60
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.60

Description

Description:
Returns surface normal on given position.

Syntax

Syntax:
surfaceNormal position
Parameters:
position: Array - format Position2D or Position3D in which case Z will be ignored
Return Value:
Array - Example: [-0.102321,0.19977,0.974486]

Examples

Example 1:
_normal = surfaceNormal [300, 500];
Example 2:
_normal = surfaceNormal position player;

Additional Information

Multiplayer:
-
See also:
setVectorUpsurfaceIsWatersurfaceType

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section