Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.18

Description

Description:Adjusts the slope (and position) of the object to follow the underlying terrain contour.

Syntax

Syntax:placeOnSurface object
Parameters:
  • object: Object - Object to align / move. The object is only aligned with the the surfaceNormal, but not moved vertically, to be on top of that surface (to do so, use the Alternative Syntax).
Return Value:Nothing

Alternative Syntax

Syntax:placeOnSurface [object, move, considerSnow] (V3.3+)
Parameters:
  • object: Object - Object to align / move.
  • move: Boolean - If true, then the object is placed on top of the underlying terrain.
  • considerSnow: Boolean - If true, then the alignment takes into account any slopes created by snow layers.
Return Value:Nothing

Examples

Examples:
placeOnSurface tank1
placeOnSurface [tank1,true,true]

Additional Information

See also: fn vbs placeOnSurface
Multiplayer: 
Problems:Placement (using alternative syntax) on elevated roadways (for example, bridges, rooftops) may not be applied correctly.

Notes