Jump to content

Script function to raise Z position?


Blezmo

Recommended Posts

 

Is there a script function to raise the Z position of an object or actor?

The set position Z isn't that useful here. There's a mod called XPMSE that allows you to set your character's "Z offset" which basically allows you to set your character to float above the floor or sink slightly through the floor.

I wonder If I could do something like that with a script function.

 

Setposition() is hardly ever useful on an actor. And especially in the case of a furniture animation.

 

Furniture animations (like sitting) are designed to make a tight connection between furniture and actor, so even bumping has no effect. The only result of setting z position is that the animation will be temporarily interrupted (going to idle) and then resumed in the old place. Generally I think it would look quite strange, if a tiny actor would start the regular sit entry, and then all of the sudden is teleported to a higher location.

 

XPMSE is changing skeletons. And if there is no SKSE interface for that, you would probably need an SKSE plugin to make this skeleton change temporarily.

 

The only reasonable way I see is to change the sit animations for the actor. And include the elevation part into the enter and exit animations. Similar to the ride cart animations.

 

 

No, actually changing the z position does work for the duration of the sitting animation. I've already tested that using the console command.

For my mod I'm just going to make a global script that detects whenever the player is sitting and will adjust based on the player's scale.

Link to comment
Share on other sites

Your best bet is to create an ability spell with a constant magic effect with the GetSitting condition. When the condition is met (you probably want 3), the effect kicks in. Attach this to the player, perhaps using a quest alias, and whenever the player sits the effect will start, and stop when they're not sitting. Easy.

 

https://www.creationkit.com/index.php?title=GetSitting

Link to comment
Share on other sites

 

 

No, actually changing the z position does work for the duration of the sitting animation. I've already tested that using the console command.

For my mod I'm just going to make a global script that detects whenever the player is sitting and will adjust based on the player's scale.

 

 

I tested it with a script, and it didn't work. I tried with an NPC though.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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