Background for Fallout 4
Member of the RefCollectionAlias script
voidfunctionSetValue(ActorValueakActorValue, floatfValue)

Description

Wiki Description

Calls ObjectReference.SetValue(...) on all the actors in the collection.

Documentation Comment

kmk
set an actor value on all refs in the collection


Caveats

CK Wiki - Notes

This only calls SetValue on actors, even though it can be called on references.


Parameters

ActorValueakActorValue

CK Wiki Description

The actor value to set

floatfValue

CK Wiki Description

The value to set


Examples

; Set the health of everyone
SickPeople.SetValue(HealthAV, 10)

Auto-Generated Example

ActorValue myActorValue__akActorValue
float myFloat__fValue

myRefCollectionAlias__toCallFunctionOn.SetValue(myActorValue__akActorValue, myFloat__fValue)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.