Skip to main content

Execute_AddModifierToChildrenWithTag

Description

Adds the specified modifier to every child of the base object that has a matching object tag.

Parameters

ParameterDescription
BaseObjectThe parent entity whose children are searched.
S1The modifier ID to add to matching children.
S2The object tag used to filter which children receive the modifier.

Examples

DescriptionBaseObjectCommandS1S2
Add frozen modifier to all tagged children of SelfSelfAddModifierToChildrenWithTagModifier_FrozenTag_Food
Add spoiled modifier to all tagged children of TargetTargetAddModifierToChildrenWithTagModifier_SpoiledTag_Organic