Those are all functions available for now:

;akCategory: Category name, found in "Data\F4SE\Plugins\F4EE\Tints\PlugiName\categories.json" or ingame looksMenu ("slm").
;akTintName: Face Tint name, found in "Data\F4SE\Plugins\F4EE\Tints\PlugiName\templates.json" or ingame looksMenu ("slm").
;You can also get the names from the esp: "akCategory" = FormList Name, "akTintName" = HeadPart Name.
;akActor: if none, headPart will be applied to player


Bool Function ApplyHeadPart(String akCategory, String akTintName, Actor akActor = None)

Bool Function ApplyHeadPartIfNone(String akCategory, String akTintName, Actor akActor = None)
;this will apply HeadPart to the actor only if it's not already applied.

Bool Function HasHeadPart(String akTintName, Actor akActor = None)
;Simple check to see if the actor already has the headpart or not

int Function GetHeadPartCount(String akTintName, Actor akActor = None)
; Returns akTintName count on the ref (headparts can be stacked).

Bool Function RemoveHeadPart(String akTintName, Actor akActor = None)
;remove "akTintName" from "akActor".

Bool Function RemoveHeadParts(String akCategory, Actor akActor = None)
;remove all Face Tints found in "akCategory" from "akActor".

Function RemoveAllHeadParts(Actor akActor)
;Remove All headparts applied by this mod (all of them).

Function PrintHeadParts(Actor akActor = None, Bool bOverlays = False)
; Output all headparts applied to "akActor" in log (For debugging).

GOE ONLY:

Bool Function ApplyHeadPartByFullName(String akTintName, Actor akActor = None)
; Same as ApplyHeadPart but faster and doesn't require category (only Tint name)

Bool Function ApplyHeadPartByFullNameIfNone(String akTintName, Actor akActor = None)

If GOE is installed, ApplyHeadPart and ApplyHeadPartIfNone will redirect the call to ApplyHeadPartByFullName and ApplyHeadPartByFullNameIfNone respectively (Faster).


Here's an example on how to call this mod functions from your mod without adding any dependency:

;Apply a FaceTint to Player:
ScriptObject SFT_Script = Game.GetFormFromFile(0x8A, "SFT.esp").CastAs("SFT:SFT_API")
Var[] Params = new Var[3]
Params[0] = "Category name"
Params[1] = "Face tint name"
Params[2] = Game.GetPlayer() as Actor
Bool Result = SFT_Script.CallFunction("ApplyHeadPart", Params)

Article information

Added on

Edited on

Written by

lee3310

0 comments