glowplug Posted March 13, 2023 Share Posted March 13, 2023 Is this still a mod request? Scanning through I saw a number of 'PlaceAtMe' solutions which leads to save bloat. My solution to that is... Put a copy of ctrlogfiles.nif in a mod folder. Change it's collision to anim static using NifSkope (so it can be safely moved around). Add that under Static in a new esp. Create a Utils interior and add the object to it. Write a function that drops it in front of player.The function on step 5 can be called from a spell or hotkey. While it works first time the subsequent issues seem to be related to cell caching - if cached it fails else it works. Subsequent moves add another problem. It is if PositionCell/PositionWorld displace the Nif Origin each use - the change in angle and increase in position state that it is accumulating. kvRectifyDegree is simply a variation of FMod based on <360 let fAngleZ := call kvRectifyDegree Player.GetAngle z let fRadZ := fAngleZ * 0.0174533 let fX := Player.GetPos x let fY := Player.GetPos y let fX += 256 * cos fAngleZ let fY += 256 * sin fAngleZ let fZ := 32 if Player.IsInInterior let fZ += Player.GetPos z let refLocation := Player.GetParentCell kvToggleFireLogs01Ref.PositionCell fX, fY, fZ, fRadZ, refLocation else let fZ += GetTerrainHeight fX, fY let refLocation := Player.GetParentWorldspace kvToggleFireLogs01Ref.PositionWorld fX, fY, fZ, fRadZ, refLocation endif Having written one of the first data charting components for NT web servers I doubt I have my trig wrong here. I know the engine requires conversion over Worldspace quadrants but that does not explain relocation failure for an instantiated object. Why is it failing to move on whatever number of calls? Link to comment Share on other sites More sharing options...
RomanR Posted June 4, 2023 Share Posted June 4, 2023 It propably doesn't matter anymore, but latest Nexus addition (on 3.6.2023) is "Light The Campfires" mod made by Lastutin. Maybe worth a try? @glowplug: I think using Player.GetParentCell will work in exteriors too, is there some reason using different set of commands for them? Link to comment Share on other sites More sharing options...
ArtemSHikoff Posted October 13 Share Posted October 13 It was a peculair discussion! I really appreciate it. How all these refs created by PlaceAtMe should be cleaned though? How to access to these refs through script to use DeleteReference on them? I'm trying to guess it out but maybe somebody can say it... Link to comment Share on other sites More sharing options...
AndalayBay Posted October 13 Share Posted October 13 6 hours ago, ArtemSHikoff said: It was a peculair discussion! I really appreciate it. How all these refs created by PlaceAtMe should be cleaned though? How to access to these refs through script to use DeleteReference on them? I'm trying to guess it out but maybe somebody can say it... Have a look at Imperial Furniture Renovated as I mentioned in my reply to your scripting questions. 1 Link to comment Share on other sites More sharing options...
Recommended Posts