Can't force aggro.

Post » Tue Jun 19, 2012 6:53 am

Basically, I am trying to force an actor to go aggro after he finishes saying something.
For whatever reason, I can't get ANY papyrus fragments to compile, so rather than using akSpeaker.STartCombat(Game.GetPlayer()) I made a script. It has an actor property and looks like this.

Scriptname Anger extends ObjectReferenceActor Property Angerparty  AutoFunction makeangy()	 Angerparty.StartCombat(Game.GetPlayer())endFunction

Very simple. I have this as a script for the actor's alias. My question is, how do I actually employ this script? How do I make it so that it isn't jsut something attached to the alias, but when the actor says the line, he'll actually trigger the script.

This question of linking scripts to actual action has been really frustrating, and one would be surprised how hard it is to find anything in the tutorials about it.
User avatar
anna ley
 
Posts: 3382
Joined: Fri Jul 07, 2006 2:04 am

Post » Tue Jun 19, 2012 10:44 am

Better to create through AI Data, select Aggressive
User avatar
Heather Stewart
 
Posts: 3525
Joined: Thu Aug 10, 2006 11:04 pm


Return to V - Skyrim