Function
Util
Util_ApplyModifier
Applies any modifier to the target SGroup, EGroup, or Player
On this page
Util_ApplyModifier(groupid, modifier, scalefactor, mathtype, applytype, exclusive, targetname)Description
Valid applytypes are MAT_...(Entity, Squad etc.), if left default assumption is default type for the target Cases you want to define applytype: Weapon Modifiers, Enable Modifiers, or a player modifier for all entity or squad types Valid mathtypes are MUT...(Addition, Multiplication, etc.) Exclusive modifiers will replace all pre-existing modifiers of that modifier type on the target
Parameters
groupidSGroupID/EGroupID/PlayerrequiredmodifierStringrequiredscalefactorRealrequiredmathtypeRealrequiredapplytypeRealoptionalexclusiveBooleanoptionaltargetnameStringoptional
Returns
modidsSource
Declared in the game's script sources at:
scar/modifiers.scar