Skill triggers when player looks at mob

Discussion in 'Support' started by VVVVVid, Oct 11, 2018.

  1. VVVVVid

    VVVVVid New Member

    Joined:
    May 22, 2018
    Messages:
    3
    Likes Received:
    0
    Hi there!
    I'm making a mob that stops moving when the player looks at him (like this awesome weeping angel) and I tried using sudoskill to let the target use a skill with fov condition, but it doesn't seem to work at all. Is this the right way to do it? Am I missing something?
    Thank you for your time ^^

    Edit:
    This is my code - MOB
    Code:
      Skills:
      - sudoskill{s=Look} @trigger ~onTimer:20
    SKILL
    Code:
    Look:
      Conditions:
      - fov{a=90}
      Skills:
      - skill{s=Stop} @target
    Stop:
      Skills:
      - potion{type=SLOW;duration=20;level=5} @target
     
    #1
    Last edited: Oct 11, 2018
  2. VVVVVid

    VVVVVid New Member

    Joined:
    May 22, 2018
    Messages:
    3
    Likes Received:
    0
    I also tried this code, with the condition on the target, but it's not working. Anyone can help me?
    MOB
    Code:
    Skills:
      - skill{s=Look} @target ~onTimer:20
    SKILLS
    Code:
    Look:
      TargetConditions:
      - fov{a=90}
      Skills:
      - skill{s=Stop} @self
     
    #2
  3. Omanoctoa

    Omanoctoa Active Member
    Supporter Premium Supporter

    Joined:
    Mar 10, 2016
    Messages:
    382
    Likes Received:
    33
    Try using MythicMobs Extension - https://github.com/BerndiVader/MythicMobsExtension - specifically the isgoggling{action=true} condition. There are others in the Extension that might help too, but that one should work. I assume it uses the same code as Endermen...
     
    #3

Share This Page