boiii-scripts/shared/ai/systems/animation_state_machine_utility.gsc
2023-04-13 17:30:38 +02:00

26 lines
6.9 KiB
Plaintext

#using scripts\shared\ai\archetype_utility;
#namespace AnimationStateNetworkUtility;
// ------------------- Functions to be updated and maintained after the integration in T7 --------------------------------------//
function RequestState( entity, stateName )
{
assert( IsDefined( entity ) );
entity ASMRequestSubState( stateName );
}
function SearchAnimationMap( entity, aliasName )
{
if ( IsDefined( entity ) && IsDefined( aliasName ) )
{
animationName = entity AnimMappingSearch( IString( aliasName ));
if ( IsDefined( animationName ) )
return FindAnimByName( "generic", animationName );
}
}