Click or drag to resize

GlobalObjectAttachTo Method

Attaches this object to the specified player, vehicle or object.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void AttachTo(
	EntityId target,
	Vector3 offset,
	Vector3 rotation,
	bool syncRotation = false
)

Parameters

target
Type: SampSharp.EntitiesEntityId
The player or vehicle.
offset
Type: SampSharp.Entities.SAMPVector3
The offset.
rotation
Type: SampSharp.Entities.SAMPVector3
The rotation.
syncRotation (Optional)
Type: SystemBoolean
if set to true synchronize rotation with objects attached to.
See Also