Search the Community
Showing results for tags 'powered'.
-
Use this function: ; uses functions from SUP Import SUP_F4SE ; Assign this in CK or use Game.GetForm() or whatever Keyword Property WorkshopItemKeyword Auto Const Mandatory ; Safely delete a powered reference from script with SUP F4SE ; Parameters ; refElement: Powered ObjectReference to delete ; Return Value ; True = success, False = failure Bool Function SafeDeletePoweredRef(ObjectReference refElement) ; parameters supplied? If (refElement == none) Debug.Trace(Self + ": ERROR - SafeDeletePoweredRef() failed: Missing or invalid parameter.") Return False EndIf ; sup scrap crash fix active? If (IsSUPPatchActive(1) == false) Debug.Trace(Self + ": ERROR - SafeDeletePoweredRef() failed: SUP F4SE Scrap Crash Fix disabled; Unable to safely delete reference.") Return False EndIf ; get refElement workshop ObjectReference refWorkshop = refElement.GetLinkedRef(WorkshopItemKeyword) as ObjectReference If (refWorkshop == none) Debug.Trace(Self + ": ERROR - SafeDeletePoweredRef() failed: Object does not have valid WorkshopItemKeyword reflink.") Return False EndIf ; get objects connected to refElement ObjectReference[] connectedObjects = refElement.GetConnectedObjects() ; delete refElement.Delete() ; notify formerly connected objects Int i = 0 While (i < connectedObjects.Length) WorkshopGenerateFakeReferenceEvent(refWorkshop, connectedObjects[i]) i += 1 EndWhile ; success Return True EndFunction That's all - No need to open Workshop or some suchlike; It won't CTD.
- 1 reply
-
- 1
-
- power grids
- power
-
(and 3 more)
Tagged with:
-
Granted this is my first mage character, but i have never had this many issues killing things with magic... It could be my spells, but I have fireball/firebolt, runes, icespike and chain lightning which aren't the best but they aren't weak either I even turned the difficulty down all the way to novice and my level 17, lvl 50 destruction magic, character can't even take down a group of Dwarven spiders. Right now, in terms of magic mods, I have: Fire and Ice overhaul, apocalypse/midas magic, magic duel, better magic and magic scaling. Is it an issue of too many mods, not the right mods or not the right spells? Its just annoying because melee characters aren't hindered at all by lack of fatigue, plus even a guy in full armor and a two handed battleaxe can catch up to my robe wearing mage.... Anyone have any ways around this, because come on, theres got to be something wrong if i can't take on some dwarven spiders on Novice. I usually play on Expert, but that has gotten to be impossible given that melee characters have seemingly no restrictions, so now I play on Adept.
- 3 replies
-
- magic
- destruction
-
(and 4 more)
Tagged with:
-
Granted this is my first mage character, but i have never had this many issues killing things with magic... It could be my spells, but I have fireball/firebolt, runes, icespike and chain lightning which aren't the best but they aren't weak either I even turned the difficulty down all the way to novice and my level 17, lvl 50 destruction magic, character can't even take down a group of Dwarven spiders. Right now, in terms of magic mods, I have: Fire and Ice overhaul, apocalypse/midas magic, magic duel, better magic and magic scaling. Is it an issue of too many mods, not the right mods or not the right spells? Its just annoying because melee characters aren't hindered at all by lack of fatigue, plus even a guy in full armor and a two handed battleaxe can catch up to my robe wearing mage.... Anyone have any ways around this, because come on, theres got to be something wrong if i can't take on some dwarven spiders on Novice. I usually play on Expert, but that has gotten to be impossible given that melee characters have seemingly no restrictions, so now I play on Adept.
- 2 replies
-
- magic
- destruction
-
(and 4 more)
Tagged with: