Jump to content

How to get AI-controlled player character


aharttsx

Recommended Posts

I'm trying to implement a feature into my vampire mod that will cause the player to have a small chance losing control, going on a blood-crazed rampage, and then blacking out while bloodstarved/stage4. Specifically I want the player to have controls disabled, and have some sort of AI take over and attack any NPC in the area. I have everything working, except for the AI taking over and I'm wondering if anyone has an idea how to get something like this to work. I tried adding an AI package via quest similar to what i found in this link:

 

It didn't work. But I also know next to nothing about creating/editing AI packages. If anyone could give me a few tips, it would be greatly appreciated.

Link to comment
Share on other sites

http://www.creationkit.com/DisablePlayerControls_-_Game

You can use that in a script to disable the player's controls.

 

However, I don't think it is possible to force the player character to attack. I could be wrong and for your sake, I hope I am...

 

You may be better off doing something akin to what was done with the Companions werewolf initial change. Take away their controls except movement, then after a little bit fade to black and transport them to some pre-determined "random locations". Use dialog and/or toggled scenary (i.e. body parts and blood) to convey what happened.

Link to comment
Share on other sites

Have a look at the start quest in helgen; It's one of the instances when your character is moved around via scripting; attacking might be possible too.

Or you could force the player into vampire form and force surrounding NPC to attack.

Link to comment
Share on other sites

http://www.creationkit.com/DisablePlayerControls_-_Game

You can use that in a script to disable the player's controls.

 

However, I don't think it is possible to force the player character to attack. I could be wrong and for your sake, I hope I am...

 

You may be better off doing something akin to what was done with the Companions werewolf initial change. Take away their controls except movement, then after a little bit fade to black and transport them to some pre-determined "random locations". Use dialog and/or toggled scenary (i.e. body parts and blood) to convey what happened.

Yeah, i have disable player control , transform into VL and then a fade to black after about a minute passes. Havent worked in a transport yet as I want to get the AI thing working first.

 

Have a look at the start quest in helgen; It's one of the instances when your character is moved around via scripting; attacking might be possible too.

Or you could force the player into vampire form and force surrounding NPC to attack.

I did actually look into that, and the player character has a patrol static pathing AI package that tells it to move to a certain point during the one scene in that quest. I dont know too much about using the AI packages n setting it up to what I need it to be, but the person in the video I linked in my first post made a mini quest that causes AI to make the player kill a single target as part of a scene. Im trying to do something similar to this, but instead of a quest objective and as a single target, i want the AI package to make the player hostile to any nearby creature/npc

 

Thanks for the responses by the way, tis much appreciated!

Link to comment
Share on other sites

There were functions for adding/removing/changing AI packages; since the player is controlled by AI in helgen, you could try adding an attack everything on sight package; Also, I am pretty sure you'll have to set an AI Class like cssoldier,csmelee.

Link to comment
Share on other sites

There were functions for adding/removing/changing AI packages; since the player is controlled by AI in helgen, you could try adding an attack everything on sight package; Also, I am pretty sure you'll have to set an AI Class like cssoldier,csmelee.

I tried using the functions for Evaluate Package and Enable AI, on the CK wiki thing those were the only ones that I saw as far as "adding" packages go.. unless there was a section i might have missed. I looked through the packages and i didnt really see one for "attack everything on sight" kinda thing, i think i might have to make a custom AI package for that, but i dont really know anything about making custom AI packages. Also, I meant to say it in the first post, but there is a forced transformation into VL form thats scripted into the rampage, to which I tried adding Harkon's Melee CS to. So far, nothing has seemed to work, I'll keep trying different things though..

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...