Jump to content

Scripting help:how to place an object in a location relative to another object?


tengma

Recommended Posts

Posted

I am trying to build a mod that allows player to put an house(with exterior decorations) anywhere in the  world...


I know how to make a mod that allows player put a single object(using place at me function),but is there any script that either:


 


 


a)allows you to put an object on a location base on another object's location?, like,when player put the house, a script will put a mailbox X units infront of the box?


 


 


b)allows player to put a pre-setted "group" of objects, like, allows you to put the entire house and its exteriors together?


 


 


thanks for the help!


 


 


 


Posted

I thought of a way...put a marker on the house, use translate to move the marker, and then put objects on the marker, then delete the marker...

 

 

however , translate function must use the coordinate of the world, so now I just need to relearn some trigonometry I learnt in high school to write a code that calculate the object's world coordinate...........  

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...