1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Factions outpost help

Discussion in 'Plugin Help' started by Brant, Mar 4, 2020.

  1. Brant

    Brant Baby Zombie

    Messages:
    104
    GitHub:
    tetroyt
    Context: Factions outpost is an area where players can capture and gain faction power lets say every 30 seconds etc

    im not sure how i can set it so when the player has captured the area 100% their faction gains lets say 10 power every 30 seconds

    edit: im using FactionsPro
     
  2. Heisenburger69

    Heisenburger69 Silverfish

    Messages:
    16
    GitHub:
    heisenburger69
    Create an array storing the % captured, run a task every 20 * 30 ticks to check if the % is 100% for the faction currently capturing the area, if it is, give the faction 10 power.

    This also works as you can simply reduce this by 1% per second when another faction tries to capture, and once it reaches zero, set the new Faction to be capping the point
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.