-
Posts
37 -
Joined
-
Last visited
Nexus Mods Profile
About cerebii

Profile Fields
-
Country
United Kingdom
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
cerebii's Achievements
-
I'm having this issue too. These are the plugins we have in common: Alluring Wine Bottles.esp Auto Update Leveled Items And Spells - Script Patch.esp Auto Update Leveled Items And Spells.esp BetterSaves.esp Book Jackets DLC.esp BookTrackerUpdatedv1.1.esp County Gates.esp DLCBattlehornCastle - Unofficial Patch.esp DLCBattlehornCastle.esp DLCFrostcrag - Unofficial Patch.esp DLCFrostcrag.esp DLCHorseArmor - Unofficial Patch.esp DLCHorseArmor.esp DLCMehrunesRazor - Unofficial Patch.esp DLCMehrunesRazor.esp DLCOrrery - Unofficial Patch.esp DLCOrrery.esp DLCShiveringIsles.esp DLCSpellTomes - Unofficial Patch.esp DLCSpellTomes.esp DLCThievesDen - Unofficial Patch - SSSB.esp DLCThievesDen - Unofficial Patch.esp DLCThievesDen.esp DLCVileLair - Unofficial Patch.esp DLCVileLair.esp Death Notifications.esp Diverse Effect Icons OBSE.esp Ducks and Swans.esp ExpandedGreetings.esp Follower Status.esp GrimbotsSpellTomes.esp Harvest [Flora] - DLCFrostcrag.esp Harvest [Flora] - DLCVileLair.esp Harvest [Flora] - Shivering Isles.esp Harvest [Flora].esp Idle Dialogue.esp Improved NPC Faces for OCOv2.esp ImprovedSigns.esp Initial Glow Redux.esp Knights - Unofficial Patch.esp Knights.esp LINK.esp LootMenu.esp OCO Unused Eyes and DLC Eyes Incorporated.esp Oblivion.esm Oblivion_Character_Overhaul.esp Oblivion_Character_Overhaul_Faces.esp RevertHFLaggyHarrada.esp RoadLights.esp Simple Horse Utilities.esp StoneMarkers.esp Unofficial Oblivion Patch.esp Unofficial Shivering Isles Patch.esp WayshrineMapMarkers.esp WindowLightingSystem.esp WorldMapsForAllWorldspaces.esp lVanilla Style Loading Screens Addon.esp
-
Disable havok on Xmarker spawned item?
cerebii replied to cerebii's topic in Fallout 4's Creation Kit and Modders
It's just the default CustomItemQuestScript script, attached to a quest. Spawns the item on game load-in (when the quest starts, I think). I wouldn't think it would be a good use of time to completely re-write the script if it works ok? Just need to work out how that Function fits in.... -
Disable havok on Xmarker spawned item?
cerebii replied to cerebii's topic in Fallout 4's Creation Kit and Modders
Edit: Seems like I have to use this?: Function SetMotionType(int aiMotionType, bool abAllowActivate = true) native Me and my smooth brain are having a hard time lol -
Disable havok on Xmarker spawned item?
cerebii replied to cerebii's topic in Fallout 4's Creation Kit and Modders
Ah, hello SKK, thanks for the help once again. Option a) seems promising, I assume it would look something like this: Scriptname CustomItemQuestScript extends Quest Struct ItemDatum String ID {Indentifier - used to help identify items in array. Not otherwise used.} int QuestStage {Spawn item at this quest stage} LeveledItem LeveledListToSpawnFrom {List to spawn from} Formlist ModsFormlist {List of mods to install on item ****IMPORTANT NOTE*** THIS BYPASSES ALL NORMAL ITEM INSTANTIATION RULES} ObjectReference ReferenceToSpawnIn {Where to spawn item} ReferenceAlias AliasToSpawnIn {Where to spawn in, overrides ReferenceToSpawnIn} bool PlaceAtMeInstead {Place AT instead of IN ReferenceToSpawnIn} ReferenceAlias AliasToForceItemInto {if set, item will be forced into this alias} EndStruct ItemDatum[] Property ItemData const auto Event OnStageSet(int auiStageID, int auiItemID) int foundIndex = ItemData.findStruct("QuestStage", auiStageID) ItemDatum FoundDatum if foundIndex >= 0 FoundDatum = ItemData[foundIndex] endif if FoundDatum && auiItemID == 0 ObjectReference spawnInRef if FoundDatum.AliasToSpawnIn spawnInRef = FoundDatum.AliasToSpawnIn.GetReference() elseif FoundDatum.ReferenceToSpawnIn spawnInRef = FoundDatum.ReferenceToSpawnIn else Game.Warning(Self + "OnStageSet() didn't find ReferenceToSpawnIn, using Game.GetPlayer() instead.") spawnInRef = Game.GetPlayer() endif SpawnCustomItem(FoundDatum.LeveledListToSpawnFrom, FoundDatum.ModsFormlist, spawnInRef, FoundDatum.PlaceAtMeInstead, FoundDatum.AliasToForceItemInto) endif EndEvent form Function SpawnCustomItem(LeveledItem LeveledListToSpawnFrom, Formlist ModsFormlist, ObjectReference ReferenceToSpawnIn, bool PlaceAtMeInstead = false, ReferenceAlias AliasToForceItemInto = none) global ObjectReference item = ReferenceToSpawnIn.PlaceAtMe(LeveledListToSpawnFrom, aiCount = 1, abForcePersist = false, abInitiallyDisabled = true, abDeleteWhenAble = false) debug.trace("SpawnCustomItem() creating item " + item) int i = 0 while (i < ModsFormlist.GetSize()) ObjectMod omod = ModsFormlist.GetAt(i) as ObjectMod bool success = item.AttachMod(omod) if success == false Game.Error("FAILED TO ATTACH " + omod + " to "+ item) else debug.trace("SpawnCustomItem() attaching " + omod + " to " + item) endif i += 1 endwhile item.enable() if AliasToForceItemInto AliasToForceItemInto.ForceRefTo(item) endif if PlaceAtMeInstead debug.trace("SpawnCustomItem() placed item: " + item + " at " + ReferenceToSpawnIn) else debug.trace("SpawnCustomItem() adding item: " + item + " to " + ReferenceToSpawnIn) ReferenceToSpawnIn.additem(item) endif item.setMotionType(Motion_Keyframed, TRUE) RETURN item EndFunction ? -
Disable havok on Xmarker spawned item?
cerebii replied to cerebii's topic in Fallout 4's Creation Kit and Modders
Hi, thanks for the reply. First off, I'm a complete noob with CK and Papyrus, so if I misunderstand anything anyone says that's why lol The weapon in question is spawned with the "CustomItemQuestScript" script, so I don't think it technically exists as an item until the script spawns it in? Do you know of another way I could get a custom legendary item in a way where I could directly place it as an object in the world? (and therefore be able to edit the motiontype) Thanks again! -
Hey y'all, quick CK question; I'm using an Xmarker to spawn in a weapon using placeatme, but I'd like to disable havok on the spawned weapon. I've tried using the "defaultdisablehavokonload" script on the Xmarker but that doesn't seem to work for the object it spawns. Does anyone know how to do this? Many thanks!
-
Yeah, using the "long code simpler to understand" approach might be the best solution for you I guess. Not to re-use the same joke twice but... I think I'm still at this stage in my scripting career :laugh: Anyways, the mod is finished and uploaded, let me know if you're unhappy with anything, and thank you again!
-
When you say "access elements individually", how would this relate to the script? Would I need to replace every instance of "c_grenade_frag_scrap" with "MiscObject c_grenade_frag_scrap = MyScrapList.GetAt(2) As MiscObject"? Edit: Tested the script out with a formlist and it seems to just work so I think I'm good, thanks again :smile:
-
Yeah this is to just test the script, the idea is to take the c_grenade_scrap and give a grenade back... I'm hoping to edit it with all the c_grenade_scrap items I've added and have them automatically swap out for the right components, the reason I need a script is because you can't have non-CMPO items tagged as components on a misc item or the game just crashes when it tries to read it or whatever, and some of the recipies for grenades require stuff like nuka cola and other grenades.