Please help,I'm making a CTF game(Capture the Flag).When they somebody places the flag on a turf,the whole teams flag placed var will be 1.How would I do that???????
~~~~SSJ4_Gohan_Majin
ID:266540
![]() Apr 4 2002, 3:10 pm
|
|
client = new/mob/BlueTeam Both of those lines are malformed. It won't do what you think it will, if it will even compile. |
I would personally go with lists. Have a global list for each team so you don't have to search through all the players in the world each time.
var/list/Red = new() var/list/Blue = new() mob Login() ..() switch(alert("Join which team?","Join","Blue","Red")) if("Blue") Blue += src if("Red") Red += src Then when the flag is placed just loop through all the players on the appropriate team and change their flag planted var to 1. |
Or Something like that..