Stop a creature from fighting back when hit by player?

Post » Wed Jan 20, 2010 10:45 am

I've tried to stop a creature fighting back after being hit by the player but it doesn't work so far.

I've added a faction which has the player faction set to 100 disposition.

I've set aggression to 0 and responsibility to 100.

But still it fights back.

How come the player can hit player owned horses and not get attacked?
User avatar
Kayla Bee
 
Posts: 3349
Joined: Fri Aug 24, 2007 5:34 pm

Post » Wed Jan 20, 2010 8:38 pm

There's a "set ignorefriendlyhits" option.

There's also the option of using "stopcombat" if the creature's target is the player.
User avatar
Brιonα Renae
 
Posts: 3430
Joined: Mon Oct 22, 2007 3:10 am

Post » Wed Jan 20, 2010 11:33 pm

There's a "set ignorefriendlyhits" option.

There's also the option of using "stopcombat" if the creature's target is the player.

Thanks, but how do I set ignorefriendlyhits to work?

The Wiki says
(nothing) setignorefriendlyhits willignore:bool 
Which doesn't mean a lot to me.

I currently am getting around it with using Begin OnHit and StopCombat, but the problem with that is that the music jumps as if it was about to play the battle music, which is kind of annoying.
User avatar
e.Double
 
Posts: 3318
Joined: Tue Jul 24, 2007 11:17 pm

Post » Wed Jan 20, 2010 4:56 pm

You can set the creature to be owned by the player, which will cause it to ignore all attacks from the player regardless of anything else. This works for NPCs too.
User avatar
Travis
 
Posts: 3456
Joined: Wed Oct 24, 2007 1:57 am

Post » Wed Jan 20, 2010 11:10 pm

You can set the creature to be owned by the player, which will cause it to ignore all attacks from the player regardless of anything else. This works for NPCs too.

But thats only for the ref when hand placed right? I can't do that to the creature in the Creatures list.
User avatar
Robert Jr
 
Posts: 3447
Joined: Fri Nov 23, 2007 7:49 pm

Post » Wed Jan 20, 2010 11:01 pm

That I don't know. :) Figured I'd throw one more possibility out there in case it would be helpful.
User avatar
Mariaa EM.
 
Posts: 3347
Joined: Fri Aug 10, 2007 3:28 am

Post » Wed Jan 20, 2010 10:09 pm

Will this is a simple idea, and I'm not sure if it would work, but its worth a try:

Scn HorseNoAttack [or whatever your script's called]Begin OnHitStopcombatend


but tbh that's just a random idea, so you might need to build on it a bit, but may as well give it a try, it should just stopcombat with the player every time the horse is hit, which should work.
User avatar
Romy Welsch
 
Posts: 3329
Joined: Wed Apr 25, 2007 10:36 pm

Post » Wed Jan 20, 2010 6:01 pm

Will this is a simple idea, and I'm not sure if it would work, but its worth a try:

Scn HorseNoAttack [or whatever your script's called]Begin OnHitStopcombatend


but tbh that's just a random idea, so you might need to build on it a bit, but may as well give it a try, it should just stopcombat with the player every time the horse is hit, which should work.

Yeah that's what I'm already doing, but it is not perfect. The problem is now the music stops as if the battle music is about to run, then the next track starts, which is kind of annoying and breaks the immersion.
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am


Return to IV - Oblivion