Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; -------- Compatibility Code ----------
- Form akUCF = Game.GetFormFromFile(0xEFF, "EFF.esp")
- If akUCF
- ScriptObject akCompanionManager = akUCF.CastAs("EFF:CompanionManager")
- If akCompanionManager && akCompanionManager.GetPropertyValue("CurrentVersion") >= 3
- Var[] Params = new Var[2]
- Params[0] = self
- Params[1] = "OnIterateCompanion"
- FollowerScript.GetScript().CallFunction("ForEachCompanion", Params)
- ; Not called on CompanionManager because its only one of potentially many
- ; The FollowerScript override will broadcasting to multiple managers if necessary
- Endif
- Endif
- ; --------------------- Handler Code -------------------------
- Function OnIterateCompanion(ObjectReference akRef)
- ; Do stuff here, this will be called per companion
- ; this function is not waited on, may be executed asynchronously
- EndFunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement