0 of 0

File information

Last updated

Original upload

Created by

KKthebeast and Robboten

Uploaded by

kkthebeast

Virus scan

Safe to use

Tags for this mod

About this mod

Modders tool (Pre CK)

This script will reset the position of a group of objects in a PKIN's storage Cell to zero by using the largest object in the group as a reference, then it will calculate the total object bounds of the items in the storage cell and write it back to the PKIN. (Using the existing objects set OBND)

Requirements
Permissions and credits
Modders tool (Pre CK)


This script will reset the position of a group of objects in a PKIN's storage Cell to zero by using the largest object in the group as a reference, then it will calculate the total object bounds of the items in the storage cell (using their existing object bounds) and write it back to the PKIN. (Using the existing objects set OBND)

Use case: after creating a custom PKIN from a group of preplaced objects in the world space (and borrowing their current coordinate and rotation data). This will reset the xyz coordinates to zero based on the largest object in the collection (respecting object placement, relative to each other) then set the PKIN object bounds of the collection based on the collection of objects in the storage cell referenced by the PKIN.

run the script on the PKIN, it will reference all objects in the linked cell.

Tip: don't forget your PrefabPackinPivotDummy [STAT:0003F808] for better control over initial placement. (if an object is placeatme too low when spawning it on top another object.)

Yes I know the ugly code is offensive to your sensibilities and you wouldn't do it "that way", but whatever, it gets the job done.