Skip to main content

Execute_OpenGiftBox

Description

Self opens the Target gift box entity, spawns the contained gift object in Self's right hand, applies the relationship reward defined in the gift data, and removes the gift box from the manager. Also triggers the OpenGiftBox smart situation to expose Self's reaction.

Note

Target must be a valid gift box entity registered in the GiftManager with Self as the recipient. If the gift object data is valid, the object is spawned and attached to Self's right hand with the appropriate grab animation.

Parameters

ParameterDescription
BaseObjectThe character opening the gift box; Target is the gift box entity (Self)

Examples

DescriptionBaseObjectCommand
Self opens a gift box sent by someoneSelfOpenGiftBox
Self opens gift box and receives the contained objectSelfOpenGiftBox