Jump to content

Place objects on the ground


zaira

Recommended Posts

Posted

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?

Posted

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...

Posted

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.

Posted

 

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

 

Does that work with markers? I hadn't thought of trying to enable physics on an object like that...

Posted

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.

Archived

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

  • Recently Browsing   0 members

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