TorgueMania Posted September 20, 2016 Share Posted September 20, 2016 Hi everyone, I wanna use the CK to trap some ghouls in a cage. And they are supposed to stay in there. Problem is, as soon as I move to a greater distance they walk out through the cage bars as if they don't exist. So I want to restrict their movement to the small area of the cage.Is there any movement restriction marker or something similar? Wasn't able to find something in the CK and on the topic so far. Help much appreciatedP Link to comment Share on other sites More sharing options...
shavkacagarikia Posted September 20, 2016 Share Posted September 20, 2016 I dont have much experience with how ghouls act, but maybe you should try to make collision boxes around the cage, if it doesnt work (90% that it wont work, as cages have their own collision) then you should look into how monsters in wasteland workshop DLC are held into cages. Link to comment Share on other sites More sharing options...
TorgueMania Posted September 20, 2016 Author Share Posted September 20, 2016 It's not only a ghoul thing. It seems to be some kind of distance render issue. They only walk out of the cage when I'm at a greater distance. When I'm in shooting and detection range they are trapped inside... Link to comment Share on other sites More sharing options...
shavkacagarikia Posted September 20, 2016 Share Posted September 20, 2016 Have you encountered such bug when playing wasteland workshop? If not just check cages from there and see how they work Link to comment Share on other sites More sharing options...
Magicockerel Posted September 20, 2016 Share Posted September 20, 2016 (edited) I haven't used it myself, but you could look into something like disabling the AI using the function EnableAI() when the distance between you and the captive is greater than a set amount using the OnDistanceGreaterThan() event. You'd obviously also have to enable the AI when the distance between you and the captive is less than a set amount using the OnDistanceLessThan() event. Edit: You could alternatively (or additionally) move the captive back into the cage (there are several move function variants) when the distance between you and the captive is less than a set amount using the OnDistanceLessThan() event. Edited September 20, 2016 by KernalsEgg Link to comment Share on other sites More sharing options...
TorgueMania Posted September 20, 2016 Author Share Posted September 20, 2016 I haven't tried Wasteland workshop yet. Will check it out.The scripting workaround sounds promising. I acually only have to disable their aggro once I'm 6-7 meters away from them...Haven't scripted myself yet. But will figure out somehow...thx Link to comment Share on other sites More sharing options...
Magicockerel Posted September 20, 2016 Share Posted September 20, 2016 (edited) I haven't tried Wasteland workshop yet. Will check it out.The scripting workaround sounds promising. I acually only have to disable their aggro once I'm 6-7 meters away from them...Haven't scripted myself yet. But will figure out somehow...thxWell as a starting point you could have a look at some tutorial here.A list of all script references can similarly be found here.I myself learnt through a combination of Arron Dominion's videos, Googling, the CK wiki (which I've linked you to), asking for help on the Nexus forums, and background knowledge from other languages. Hopefully that helps. Edit: You could potentially find more information on certain functions, events, etc. by looking at the Skyrim equivalent wiki, which you can redirect yourself to here. Edited September 20, 2016 by KernalsEgg Link to comment Share on other sites More sharing options...
BlahBlahDEEBlahBlah Posted September 21, 2016 Share Posted September 21, 2016 Ai packages have a setting for how far from placement an npc can travel. Might work. Collision cubes will actually push things *out* of it. Can fashion an alternative out of collision planes, however. Link to comment Share on other sites More sharing options...
DizzasterJuice Posted September 21, 2016 Share Posted September 21, 2016 (edited) The only thing you have to do is nav-mesh the bottom of the cage like this and he will stay there forever.http://i.imgur.com/F4JCphw.jpghttp://i.imgur.com/shB85zs.jpg Edited September 21, 2016 by DizzasterJuice Link to comment Share on other sites More sharing options...
TorgueMania Posted September 21, 2016 Author Share Posted September 21, 2016 Yo. Thx everyone. Navmesh solved my problem. Finally made it and now I have an unbreakable cage of feral ghouls...makes me shivvva Link to comment Share on other sites More sharing options...
Recommended Posts