-
Posts
3 -
Joined
-
Last visited
Tron91's Achievements
Newbie (1/14)
0
Reputation
-
Terminating an ObjectReference script once it runs successfully
Tron91 replied to Tron91's topic in Skyrim's Skyrim LE
Thanks everyone for the clarifications. -
Am trying to make a script which adds a Faction to an Actor using the OnLoad event. If the script finds a particular mod, it attaches a Faction from that mod to the Actor. But, the script keeps running on every OnLoad event. How to terminate the script once the Faction has been added by the script. ScriptName SexFactionsSupport extends ObjectReference Actor Property akActor Auto Bool Processed = False Event OnLoad() If Processed == True Return EndIf While akActor.Is3DLoaded() == False Utility.Wait(6.0) EndWhile Process(akActor) EndEvent Function Process(Actor akActor) If Game.GetModByName("SexFactions.esm") != 255 Faction SexFaction = Game.GetFormFromFile(0x00000d62, "SexFactions.esm") as Faction If SexFaction akActor.AddToFaction(SexFaction) Processed = True EndIf EndIf EndFunction
-
Anyone knows of a good hair mod supporting SMP.