Guest Posted July 19, 2015 Posted July 19, 2015 Hi all, I'm just working on a mod using sexlab and I want to put a whipping scene in. However, I've run it to a few problems and wondered if anyone could point me in the right direction. I have a quest setup and a quest alias which is set to the closest aggressive actor to the player. The quest fires when the player dies and I stop them actually dying etc etc. I have created a UseWeapon (Cane Weapon from Zaz Animation Pack) AI package and attached it to the quest alias and i have given the Quest Alias Actor the weapon. I can then trigger the AI Package by setting the quest to stage 41. Everything seems to work well up to that point. The Quest Alias Actor approaches the player draws the correct weapon and proceeds to whip the player. However, I can't seem to get the package to end. It is set to do 20 barrages with 1 hit per barrage. This seems to work as they stop whipping after the correct number of attacks...however they then stand there with the weapon drawn. I have tried adding a script fragment to the onEnd of the ai package to move the quest to a new stage but it seems to fire continuously, even once the quest has moved to the new stage. it is almost as if the ai package is ending then starting again in a loop. I suspect it has something to do with the ai package itself not picking up its completed criteria...but I'm at a loss as to why. Is there a way to kill an ai package?
Guest Posted July 19, 2015 Posted July 19, 2015 Solved myself I moved the whipping scene to a quest all of its own so I can start and stop it as needed. Seems to work fine now
Guest Posted July 19, 2015 Posted July 19, 2015 AI packages can be killed by conditions. If you add a condition to a package you are creating, then when the condition is false the package should be removed. You can force the condition calculation using: myActor.EvaluatePackage() Be aware that if the package is added throug ActorUtil.addPackageOverride, the package does not go away alone.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.