actorRef.StartCombat Player

Post » Wed Oct 05, 2011 6:06 pm

actorRef.StartCombat Player
Is this the best way to get an actor to attack the player?

In a new version of my Simple Vamprism Expanded mod, the player can feed from the dialogue UI.
I need to simulate what happens in the normal game when an NPC catches the player feeding on a sleeping NPC: the first NPC attacks the player.
Unfortunately, being caught feeding isn't part of the crime system, so I can't just trigger a Bounty change to get actors to attack the player.
I need to do this manually.
Is actorRef.StartCombat Player the best method?

In my test, my guildmates started to attack me.
But they're all smiling because their disposition to me hasn't changed.
They're just doing what the game engine tells them (which is what I told them with StartCombat Player) - without the game changing anything else internally.
When the hour ticks on the hour, and the game automatically triggers EvaluatePackage on them, they'll stop combat with the player.

If need be, I may manually increase the players Crime Gold if caught feeding - to trigger combat and affect all other parts of the game (e.g. Guard trigger, disposition change, Guild banishment, etc...)
User avatar
Suzy Santana
 
Posts: 3572
Joined: Fri Aug 10, 2007 12:02 am

Return to IV - Oblivion