Mobs attacking Players
#3
(02-09-2015, 08:36 AM)xoft Wrote: I'm afraid this is not possible yet. It would require some form of collaboration with the AI (set the target player to attack / follow), which is missing at this point.
Missing the attack on occasion should be doable - simply have the OnTakeDamage hook lower the damage, or for skeletons, when an arrow is spawned, modify its speed a bit.

How would you propose doing this?

The AI could easily send a cMonster:FollowPlayer(cPlayer) to have it move towards the player.

Depending on ranged/melee attacks a cMonster:AttackPlayer(cPlayer, int) where the int would be the percentage of success (0-100) or something like that.
Reply
Thanks given by:


Messages In This Thread
Mobs attacking Players - by wudles - 02-09-2015, 08:33 AM
RE: Mobs attacking Players - by xoft - 02-09-2015, 08:36 AM
RE: Mobs attacking Players - by wudles - 02-09-2015, 08:55 AM
RE: Mobs attacking Players - by coding.solo - 08-30-2017, 04:25 AM
RE: Mobs attacking Players - by LogicParrot - 09-02-2017, 06:39 PM



Users browsing this thread: 1 Guest(s)