Jump to content

Furniture Alignment Correction for NPC´s (No esp) 2.0.0


2 Screenshots

About This File

This is a very small script which can be attached to furnitures, to correct the position of NPC´s entering said furnitures.

If you have ever used something from Zap, you should know the problem.

 

this mod ads the script "pamaFurnitureAlignmentHelper"

attach it to any furniture added by a mod, and the problem should be gone.

 

install with mod manager of your choice or drop manually into data folder (Or your own mod Folder if you want to make new furnitures yourself.)

 

The propertys can safely be ignored. only use them for Furnitures which have An Offset to their entry points.

(vast majority of Furnitures don't have one. IF they do, you can find the values for them with nifscope in their respective .nif Files)

 

Full sourceCode:

Spoiler

Scriptname pamaFurnitureAlignmentHelper extends ObjectReference

 

float property EntryPointOffset_X Auto
float property EntryPointOffset_Y Auto
float property EntryPointOffset_Z Auto

float property EntryPointOffset_Rotation Auto

 

Event OnActivate(ObjectReference akActionRef)
    utility.wait(0.2)
    akActionRef.translateTo(X+EntryPointOffset_X, Y+EntryPointOffset_Y, Z+EntryPointOffset_Z, self.getAngleX(), self.getAngleY(), self.getAngleZ()+EntryPointOffset_Rotation, 20.0, 0.0)
EndEvent

 

enjoy!


What's New in Version 2.0.0

Released

Added optional properties to compensate for Offset Entry points



×
×
  • Create New...