Skip to main content

Execute_AttachGrabObject

Description

Attaches a grab object to the right hand of the specified BaseObject. If the character is already holding an object, it will be destroyed before attaching the new one. If the character is currently climbing a ladder, the command will not execute.

Parameters

ParameterDescription
BaseObjectThe character to attach the grab object to (Self or Target).
S1Object data table ID of the object to attach (ObjectDataTableId).

Examples

DescriptionBaseObjectCommandS1
Attach an umbrella to SelfSelfAttachGrabObjectUmbrella01
Attach an apple to TargetTargetAttachGrabObjectGrowFood_Apple
Attach an umbrella to TargetTargetAttachGrabObjectUmbrella01
Attach a book to SelfSelfAttachGrabObjectBook01