Jump to content

How to make the Player immoveable during a scene


GornoDD

Recommended Posts

I use the command 'SetVehicle'  http://www.creationkit.com/SetVehicle_-_Actor   It requires something to set as the vehicle (I use markers) for it to work so if you are not doing it in specific locations it requires a bit of setup to do. You need to use the command after you set the player into position as moving them will break it and they will move.

 

You mean that I set the Idle position the player gets whipped, before let him use the marker as a vehicle?

 

stop the player from doing things.

Game.SetPlayerAIDriven(TRUE)
Player.SetDontMove(TRUE)

let the player do things.

Game.SetPlayerAIDriven(FALSE)
Player.SetDontMove(FALSE)

 

Does this stop the player from beeing pushed around by attacks? I just used "SetPlayercontrols(false)"

Link to comment

 

I use the command 'SetVehicle'  http://www.creationkit.com/SetVehicle_-_Actor   It requires something to set as the vehicle (I use markers) for it to work so if you are not doing it in specific locations it requires a bit of setup to do. You need to use the command after you set the player into position as moving them will break it and they will move.

 

You mean that I set the Idle position the player gets whipped, before let him use the marker as a vehicle?

 

Yes, set the idle position then use the set vehicle command then start the whipping. Make sure you don't do them all at once or the setvehicle command likely won't work.

 

stop the player from doing things.

Game.SetPlayerAIDriven(TRUE)
Player.SetDontMove(TRUE)

let the player do things.

Game.SetPlayerAIDriven(FALSE)
Player.SetDontMove(FALSE)

 

Does this stop the player from beeing pushed around by attacks? I just used "SetPlayercontrols(false)"

 

 

SetPlayerControls and SetPlayerAIDriven only stops the player from controlling their character. SetDon'tMove should be similar to SetVehicle but it seems to be picky as to when it works as well (at least for me).

Link to comment

 

I use the command 'SetVehicle'  http://www.creationkit.com/SetVehicle_-_Actor   It requires something to set as the vehicle (I use markers) for it to work so if you are not doing it in specific locations it requires a bit of setup to do. You need to use the command after you set the player into position as moving them will break it and they will move.

 

You mean that I set the Idle position the player gets whipped, before let him use the marker as a vehicle?

 

stop the player from doing things.

Game.SetPlayerAIDriven(TRUE)
Player.SetDontMove(TRUE)

let the player do things.

Game.SetPlayerAIDriven(FALSE)
Player.SetDontMove(FALSE)

 

Does this stop the player from beeing pushed around by attacks? I just used "SetPlayercontrols(false)"

 

 

 

"abDontMove: Set to limit the actors movement. Don't let this actor be pushed around by another actor."

 

-- http://www.creationkit.com/SetDontMove_-_Actor

Link to comment

 

stop the player from doing things.

Game.SetPlayerAIDriven(TRUE)
Player.SetDontMove(TRUE)

let the player do things.

Game.SetPlayerAIDriven(FALSE)
Player.SetDontMove(FALSE)

 

Ok this works somewhat nice. Buuuut the camera gets completely frozen for the player. You cant really "enjoy" the whipping if the camera is frozen behind your player

 

Link to comment

I use the command 'SetVehicle'  http://www.creationkit.com/SetVehicle_-_Actor   It requires something to set as the vehicle (I use markers) for it to work so if you are not doing it in specific locations it requires a bit of setup to do. You need to use the command after you set the player into position as moving them will break it and they will move.

 

I have tryed this, but I dont really understand how I should create a viable object reference that the function can target in any given place

Link to comment
Game.SetPlayerAIDriven(TRUE)
Player.SetDontMove(TRUE)
MiscUtil.SetFreeCameraState(TRUE)

requires sexlab or papyrusutil standalone.

 

i would suggest digging around the psc files that come in sexlab, papyrusutil, and skse so that you know what the game can do.

 

 

That doesnt cut it. The "tfc" mechanic is overridden somehow by the SetDontMove

Link to comment

 

I use the command 'SetVehicle'  http://www.creationkit.com/SetVehicle_-_Actor   It requires something to set as the vehicle (I use markers) for it to work so if you are not doing it in specific locations it requires a bit of setup to do. You need to use the command after you set the player into position as moving them will break it and they will move.

 

I have tryed this, but I dont really understand how I should create a viable object reference that the function can target in any given place

 

 

For the "vehicle" you can use an x marker, directional x marker or an idle marker as the object depending on your needs (if you are using a marker for the location of the whipping you can use that). For your script the property of the "vehicle" will be an object reference using the marker as the object.

Link to comment

stop using tfc, and use only the script function for free camera. just apply a little bit of problem solving.

 

thats what I did. It doesnt work. I pretty much copied your code. camera is still locked in place even with

MiscUtil.SetFreeCameraState(TRUE)

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