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


Introduced in

Version:1.00

Description

Description:Attaches a location to an object, either at a fixed position relative to one object (eg: always 2m in front).

Syntax

Syntax:location attachObject object
Parameters:
  • location: Location - Location to attach.
  • object: Object - Object that the location is being attached to.
Return Value:Nothing

Alternative Syntax

Syntax:location attachObject [object,offset] (V1.22+)
Parameters:
  • location: Location - Location to attach.
  • object: Object - Object that the location is being attached to.
  • offset: Vector3D - Offset from the object origin in [x, y, z], where x = left / right, y = forward / back, z = up / down.
Return Value:Nothing

Examples

Examples:
_loc1 attachObject [car,[0,2,0]]

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes