Click or drag to resize

BasePlayerSetAttachedObject Method

Attach an object to a specific bone on this BasePlayer.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public virtual bool SetAttachedObject(
	int index,
	int modelid,
	Bone bone,
	Vector3 offset,
	Vector3 rotation,
	Vector3 scale,
	Color materialcolor1,
	Color materialcolor2
)

Parameters

index
Type: SystemInt32
The index (slot) to assign the object to (0-9).
modelid
Type: SystemInt32
The model to attach.
bone
Type: SampSharp.GameMode.DefinitionsBone
The bone to attach the object to.
offset
Type: SampSharp.GameModeVector3
offset for the object position.
rotation
Type: SampSharp.GameModeVector3
rotation of the object.
scale
Type: SampSharp.GameModeVector3
scale of the object.
materialcolor1
Type: SampSharp.GameMode.SAMPColor
The first object color to set.
materialcolor2
Type: SampSharp.GameMode.SAMPColor
The second object color to set.

Return Value

Type: Boolean
True on success, False otherwise.
See Also