Jump to content

Place objects on the ground


zaira

Recommended Posts

What I want to reach:

Placing SitCrossLeggedMarkers and a FireplaceWood01Burning via script on the ground ( creating a rest place). Unfortunately there is no Papyrus function to get the z-Coordinate of the ground.

 

One idea is to let a NPC walk to the places where the objects shall be placed and create the objects at the NPC.

 

Is there another, more elegant way to place objects on the ground? Eg. with the help of havok?

Link to comment

I don't know, but you might want to look at Frostfall to see how that does it. The campfires, tents, etc. are placed on the ground quite well, barring some problems now and then with uneven ground making objects tilt oddly.

 

I don't know if it includes the source scripts though... but you could always ask Chesko.

 

EDIT: I'm assuming you want to be able to do it anywhere in the world rather than in one specific location, obviously...

Link to comment

If the player Z position is OK for you, then just create the object(reference) from the base object, close to the player, then position X, and Y.

 

Or you can try to enable the Havok for the object, get the Player.Z, add to it 20 and let the object fall.

Link to comment

I did it for a variant of SexLab.

Actually I have no idea if was just the actor that was moving to it that was then going on the ground or was the actual marker.

But it works.

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use