=====FollowAsset=====
====Summary====
This function allows you to make an asset follow another asset in the scene.
====Parameters====
===Asset===
//Type:[[text]]
Default: **None**//
The **Name** or **ARDI ID** of the Asset you wish to follow. The asset containing this //behaviour// will maintain a position relative to the asset specified by the **Asset** parameter and follow it.
===Offset===
//Type:[[Vector3]]
Default: **1,1,1**//
The positional offset to maintain the following asset in relation to the target followed asset.
===ROffset===
//Type:[[Vector3]]
Default: **0,0,0**//
The rotational offset to maintain to the followed asset.
===MatchRotation===
//Type:[[boolean]]
Default: **0**//
If **1** or **True**, the following asset will match the rotation of the followed asset. If set to **0** or **False**, the following asset will maintain its own rotational values separate from the followed asset.
====Examples====
> The above code will find an asset named **MovingDevice** and make it the target asset to be followed by whatever contains this behaviour.
> This variation of the code will add a //positional// offset to the asset by a [[Vector3]] value of **10,5,5** respectively. It will also add a //rotational// offset with a Y value of 180, making it face away from the followed asset.
> This variation of the code will follow the named asset similar to the first example, except it has a **MatchRotation** value of **1**, which will make it also match the followed assets rotation.