Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NataIynn/PVP_Addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PVP_Addon

Allows you set safe zones in the world.

  • Still in early development.
//player is attackable & checks minimum level
    if(entity is Player && IsAttackable()) {
        if (level < MinLevel || target.level < MinLevel) {
            return;
        }
    //player is in safe zone
    } else if (entity is Player && IsSafeZone()) {
        Debug.Log("You cannot attack a player in safe zone.");
        return;
    }

Usage

  1. Create the safe zone.
    public bool InZoneName_Example()
    {
        return (transform.position.x > StartPos && transform.position.x < EndPos && transform.position.z > StartPos && transform.position.z < EndPos);
    }
  1. Add the safe zone to.
    public bool IsSafeZone()
    {
        return (InZoneName_Example());
    }

About

UMMORPG PVP Addon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages