Scarvis
|
  |
| Joined: 02 Dec 2008 |
| Total Posts: 14213 |
|
|
| 23 Aug 2014 04:39 PM |
its where a team would start to earn points when they own more flags then the other team
like if blue has 1 flag and red has 0 blue would get points ect
I just have no idea where to start on scripting it |
|
|
| Report Abuse |
|
|
Saodo
|
  |
| Joined: 26 Jul 2011 |
| Total Posts: 1206 |
|
|
| 23 Aug 2014 04:58 PM |
That's not exactly original... and if you don't even know where to start I would start learning a bit of lua. Then ask help on a specific part you are struggling on that you can explain to us.
Il get you started..
First you need to establish how many flags there are. (you need an odd number) Then you need a script that will allow 1 of two teams to capture that flag by performing an action. Once that flag has been captured maybe use some sort of global integer value to determine which team has captured the flag. i.e.
0 - for un-captured 1 - for blue 2 - for red
you can then determine how many 0's,1's,2's there are out of the total number of flags to see which team has more.
Once you have determined who has more flags use a simple loop script to increment scores. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2014 05:12 PM |
| THIS IS REALLY ORIGINAL GOOD JOB |
|
|
| Report Abuse |
|
|
Scarvis
|
  |
| Joined: 02 Dec 2008 |
| Total Posts: 14213 |
|
| |
|