Talk:GetLeveledActorBase - Actor

From the CreationKit Wiki
Revision as of 14:33, 1 October 2021 by imported>Rasikko (Created page with "=== IsLeveledActor === I'm pretty sure all leveled actors have a form id in the FF range(this will be negative in the decimal range) as they are created at run time, so after...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

IsLeveledActor[edit source]

I'm pretty sure all leveled actors have a form id in the FF range(this will be negative in the decimal range) as they are created at run time, so after some tests, I believe this will help with determining if an actor is leveled or not:

Bool Function isLeveledActor(Actor akActor)
    if akActor.GetLeveledActorBase().GetFormID() < 0
        return true
    endif
return false
EndFunction

--Rasikko (talk) 2021-10-01T15:33:08 (EDT)