Background for Fallout 4
Member of the ReferenceAlias script
boolfunctionTryToSetValue(ActorValueakAV, floatafValue)

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

Even though SetValue works on references, this function only works with actors, and so will fail and return false if the alias contains a reference, but not an actor.


Parameters

ActorValueakAV

CK Wiki Description

the Actor Value name you want to set

floatafValue

CK Wiki Description

the value you want to set


Examples

MyAlias.TryToSetActorValue(AggressionAV, 0)

Auto-Generated Example

ActorValue myActorValue__akAV
float myFloat__afValue

bool returnedValue = myReferenceAlias__toCallFunctionOn.TryToSetValue(myActorValue__akAV, myFloat__afValue)

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.