Skip to main content

Execute_ModifyStatRangeWithObjectTag

Description

Adds a stat value to all nearby game objects that have a matching ObjectTag, within the specified range from the BaseObject.

Parameters

ParameterDescription
BaseObjectThe entity used as the origin point for the range check
S1Stat name to modify on matching objects
S2ObjectTag that target objects must have
F1Amount of stat to add (negative values are allowed)
F2Maximum 2D distance (radius) from the BaseObject's location

Examples

DescriptionBaseObjectCommandS1S2F1F2
Add 10 Hungry to all "FoodItem" objects within 300 of SelfSelfModifyStatRangeWithObjectTagHungryFoodItem10300
Subtract 5 Energy from all "Machine" objects within 500 of TargetTargetModifyStatRangeWithObjectTagEnergyMachine-5500
Add 1 Cleanliness to all "Furniture" objects within 200 of SelfSelfModifyStatRangeWithObjectTagCleanlinessFurniture1200