I'm creating a sort of "capture the outpost" for factions but i cant do some parts:
Faction A is controlling an Outpost.
Faction B arrives at the outpost and click on the totem at the center.
The War starts and the loop starts counting all the player in a 30 radius from the totem.
SkDragon draw a circle representing the radius.
A variable defines the status of the outpost. 100 is neutral, 200 is conquered, 0 is defended.
At the beginning of the war the variable is 100 (neutral).
For each enemy player in the loop radius, 1 is added to the variable.
For each friendly player in the loop radius, 1 is removed from the variable.
Faction A is controlling an Outpost.
Faction B arrives at the outpost and click on the totem at the center.
The War starts and the loop starts counting all the player in a 30 radius from the totem.
SkDragon draw a circle representing the radius.
A variable defines the status of the outpost. 100 is neutral, 200 is conquered, 0 is defended.
At the beginning of the war the variable is 100 (neutral).
For each enemy player in the loop radius, 1 is added to the variable.
For each friendly player in the loop radius, 1 is removed from the variable.