Mod:Creation Kit/TryToGetValue - ReferenceAlias

Member of: Mod:Creation Kit/ReferenceAlias Script

This is a convenient way to get the actor value of an actor in an alias without calling 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 SetValue on them without having to test for an actor being present first.

Syntax
float Function TryToGetValue(ActorValue akAV)

Parameters

 * akAV: the Actor value you want to get

Return Value
The value of the actor value. If there is no actor in the alias this will be 0. However since actor values can also be 0 this is not a valid way to determine if there was an actor in the alias.

Examples
MyAlias.TryToGetValue(AggressionAV)