Solved Double damage from behind on monsters

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

L0v0lup

Member
Feb 19, 2017
26
2
3
27
Hey,

im currently trying to make a skript, what allows players to do more damage to monsters from behind.

code_language.skript:
on damage:
    victim is not looking in same direction as attacker
    increase the damage by 5
That isnt working :/ I've tried some other ways but wasnt able to get it to work
Has anyone any idea how to solve that?
 
This might not be the best way to go about this, but you can get the facing of both the victim and attacker. If their facing is the same, then do more damage.

ex.

code_language.skript:
on damage:
    set {_afacing} to facing of attacker
    set {_vfacing} to facing of victim
    if {_afacing} is {_vfacing}:
        increase the damage by 5
 
Last edited:
Oh that works perfectly! <3 Didnt know that i can set the facing direction to an variable :emoji_grinning:
 
Status
Not open for further replies.