GornoDD Posted September 5, 2015 Posted September 5, 2015 In my mod inside a whipping scene everything works really good. A new problem is, that the player while in a pose is able to be pushed around by whip attacks. Is there a way to make the player immovable?
GornoDD Posted September 5, 2015 Author Posted September 5, 2015 console command....tfc 1 ? Im talking about the creation kit.
Veladarius Posted September 5, 2015 Posted September 5, 2015 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.
darkconsole Posted September 5, 2015 Posted September 5, 2015 stop the player from doing things. Game.SetPlayerAIDriven(TRUE) Player.SetDontMove(TRUE) let the player do things. Game.SetPlayerAIDriven(FALSE) Player.SetDontMove(FALSE)
GornoDD Posted September 5, 2015 Author Posted September 5, 2015 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)"
Veladarius Posted September 5, 2015 Posted September 5, 2015 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).
darkconsole Posted September 5, 2015 Posted September 5, 2015 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
darkconsole Posted September 5, 2015 Posted September 5, 2015 Veladarius - iirc the trick is to set ai driven first.
Veladarius Posted September 5, 2015 Posted September 5, 2015 I do that at the start of a scene and use the command within the scene itself (I use setvehicle the same way). I know that set vehicle is picky on timing within the scene so it may be the same for that command as well.
GornoDD Posted September 6, 2015 Author Posted September 6, 2015 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
darkconsole Posted September 6, 2015 Posted September 6, 2015 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.
GornoDD Posted September 6, 2015 Author Posted September 6, 2015 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
GornoDD Posted September 6, 2015 Author Posted September 6, 2015 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
Veladarius Posted September 6, 2015 Posted September 6, 2015 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.
darkconsole Posted September 6, 2015 Posted September 6, 2015 stop using tfc, and use only the script function for free camera. just apply a little bit of problem solving.
GornoDD Posted September 7, 2015 Author Posted September 7, 2015 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)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.