ukjah Posted February 26, 2012 Share Posted February 26, 2012 hi, im trying to add a torture chamber in my mod like in dawnstar sanctuary. I have the "shackle wall marker", the npc, the npc with AI package sit target to the shackle, then in game my npc is chained but if i hit him, he get free, totaly unchained an runing everywhere. i guees there is something to do with packages template, like to disable movement or something with flag but i can't manage to do it.If any have the tricks, feel free to send me your solution. Thanks ! ps: sorry for my bad english ! Link to comment Share on other sites More sharing options...
Astymma Posted February 27, 2012 Share Posted February 27, 2012 hi, im trying to add a torture chamber in my mod like in dawnstar sanctuary. I have the "shackle wall marker", the npc, the npc with AI package sit target to the shackle, then in game my npc is chained but if i hit him, he get free, totaly unchained an runing everywhere. i guees there is something to do with packages template, like to disable movement or something with flag but i can't manage to do it.If any have the tricks, feel free to send me your solution. Thanks ! ps: sorry for my bad english ! Well, one of the methods available to all actors is SetRestrained and when called should do what you need. Can also do the same from the console with "setrestrained 1" or "setrestrained 0". In script: ActorReference.SetRestrained() ;restrains actor ActorReference.SetRestrained(false) ;unrestrains actor See here. Link to comment Share on other sites More sharing options...
ukjah Posted February 27, 2012 Author Share Posted February 27, 2012 well thanks for this, but i wanted to do it like the ones in dawnstar sanctuary and they dont have any script, just AI package with sittarget on the torturerack, so i don't understand why mine dont stay chained... is there some hidden options from the vanilla torture victims i could missed? Link to comment Share on other sites More sharing options...
ukjah Posted February 28, 2012 Author Share Posted February 28, 2012 Well, one of the methods available to all actors is SetRestrained and when called should do what you need. Can also do the same from the console with "setrestrained 1" or "setrestrained 0". In script: ActorReference.SetRestrained() ;restrains actor ActorReference.SetRestrained(false) ;unrestrains actor See here. well i can't make it working with script, i would like the actor restrained by defaut, what shoud i had in the script ? Link to comment Share on other sites More sharing options...
Astymma Posted February 28, 2012 Share Posted February 28, 2012 Well, one of the methods available to all actors is SetRestrained and when called should do what you need. Can also do the same from the console with "setrestrained 1" or "setrestrained 0". In script: ActorReference.SetRestrained() ;restrains actor ActorReference.SetRestrained(false) ;unrestrains actor See here. well i can't make it working with script, i would like the actor restrained by defaut, what shoud i had in the script ?What script change did you try? Also, check to see if scripts are affecting the rack or the victims. Link to comment Share on other sites More sharing options...
ukjah Posted February 28, 2012 Author Share Posted February 28, 2012 (edited) What script change did you try? Also, check to see if scripts are affecting the rack or the victims. i tryed with the dun one you can find in list : Scriptname dunSetRestrainedWhenSeated extends ReferenceAlias Function SetRestrained(bool shouldBeRestrained) Self.GetActorRef().SetRestrained(shouldBeRestrained) EndFunction Event OnSit(ObjectReference furniture) Self.GetActorRef().SetRestrained(True) EndEvent No problem to save the script, and I succesed to restrain the npc by using an activator switchbut i think i have to find another event or command to make setrestrained by default on the npc, and yes i tryed to use script on torture rack, i also tryed to find a keyword like (is furnitrure special" but with "is prisoner" etc... nothing work ^^ Edited February 28, 2012 by ukjah Link to comment Share on other sites More sharing options...
Astymma Posted February 28, 2012 Share Posted February 28, 2012 No problem to save the script, and I succesed to restrain the npc by using an activator switchbut i think i have to find another event or command to make setrestrained by default on the npc, and yes i tryed to use script on torture rack, i also tryed to find a keyword like (is furnitrure special" but with "is prisoner" etc... nothing work ^^I actually meant for you to check and see if the Dawnstar DB upgrade torture room rack and the specific victims I linked had scripts that immoblized them. Link to comment Share on other sites More sharing options...
ukjah Posted February 28, 2012 Author Share Posted February 28, 2012 I actually meant for you to check and see if the Dawnstar DB upgrade torture room rack and the specific victims I linked had scripts that immoblized them. i don't see any script in the torture rack or torture victim... that why i'm stucked and don't understand. Link to comment Share on other sites More sharing options...
Recommended Posts