Background for Starfield
Member of the ReferenceAlias script
floatfunctionTryToGetValue(ActorValueakAV)

Description

Wiki Description

This is a convenient way to get the actor value of an actor in an alias without calling ReferenceAlias.GetActorReference() on it. It's mostly useful in cases where you have lots of aliases that may or may not be filled and you want to call ObjectReference.SetValue(...) on them without having to test for an actor being present first.

Documentation Comment

Convenience function - jduvall


Caveats

CK Wiki - Notes

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


Parameters

  1. ActorValueakAV

    CK Wiki Description

    the Actor value you want to get


Examples

MyAlias.TryToGetValue(AggressionAV)

Auto-Generated Example

ActorValue myActorValue__akAV

float returnedValue = myReferenceAlias__toCallFunctionOn.TryToGetValue(myActorValue__akAV)

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.