Camera::attachTo
Attaches your camera to an object.
- JulioNIB:
Last param determines if its relative to the Entity
Syntax
``` camera.attachTo(entity, xOffset, yOffset, zOffset, isRelative); ```
Required Arguments
- entity: Entity handle or object
- xOffset: float
- yOffset: float
- zOffset: float
- isRelative: Boolean
Return value
- Undefined
Example
Attaches a camera to a vehicle and sets it as your active camera.