Added GetDecalName()

This commit is contained in:
Boondorl 2024-08-17 11:29:23 -04:00 committed by Rachael Alexanderson
commit 8c10ac6f38
4 changed files with 24 additions and 0 deletions

View file

@ -934,3 +934,20 @@ DEFINE_ACTION_FUNCTION_NATIVE(ADecal, SpawnDecal, SpawnDecal)
SpawnDecal(self);
return 0;
}
//----------------------------------------------------------------------------
//
//
//
//----------------------------------------------------------------------------
static int GetDecalName(AActor* self)
{
return self->DecalGenerator != nullptr ? self->DecalGenerator->GetDecalName().GetIndex() : NAME_None;
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, GetDecalName, GetDecalName)
{
PARAM_SELF_PROLOGUE(AActor);
ACTION_RETURN_INT(GetDecalName(self));
}