View Single Post
Old 27.03.2006, 07:52   #5
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

Quote:
Originally Posted by -=KIRALEX=-
For kids nask

NPC Answers attack
Code:
	EventHandler ATTACKED(attacker,	damage)
	{
		AddAttackDesire(attacker, @AMT_MOVE_TO_TARGET, 2000);
	}
NPC Sees karma and beats the player
Code:
	EventHandler SEE_CREATURE(creature)
	{
		if(creature.karma > 0)
		{	
			AddAttackDesire(creature, @AMT_MOVE_TO_TARGET, 1500);
		}
	}

but i think with this AI , NPC run behing player, with Met45 only attack, if think is best only attack, i don't want my gatekeepers running for the city
Mark20 is offline