SampSharp
SampSharp
SampSharp.Entities.SAMP
GlobalObject Class
GlobalObject Methods
AttachTo Method
DisableCameraCollisions Method
Move Method
SetMaterial Method
SetMaterialText Method
Stop Method
GlobalObject
AttachTo 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#
Copy
public
void
AttachTo
(
EntityId
target
,
Vector3
offset
,
Vector3
rotation
,
bool
syncRotation
=
false
)
Parameters
target
Type:
SampSharp.Entities
EntityId
The player or vehicle.
offset
Type:
SampSharp.Entities.SAMP
Vector3
The offset.
rotation
Type:
SampSharp.Entities.SAMP
Vector3
The rotation.
syncRotation
(Optional)
Type:
System
Boolean
if set to
true
synchronize rotation with objects attached to.
See Also
Reference
GlobalObject Class
SampSharp.Entities.SAMP Namespace