skymp
skymp copied to clipboard
Add Actor.AddToFaction to SP typings
This function is missing for some reason
Workaround:
import * as sp form "skyrimPlatform";
// ...
let actor = sp.Game.getPlayer() as any; // "any" muffles compiler checks
let faction = ...
actor.addToFaction(faction)