Hello everyone.
I need some adives/help, I am trying to make a game from scratch and I've been thinking how to do this..
I just want a explanation or some tips how to do it, so I want a group of players to capture a part of the map, like area by area. For example a "x" of players get in that certain part of area, and it will active on the enemy faction something like "Your area is being capture, hurry and go defend it", so the players already in the area to capture it have "y" time but when enemy faction enters in that area, time will reset until the enemy faction gets defeated. It's like as long no1 is in that area except capturing team the time will always active or actived.
When captured area, it will belong to capture team. Hope you guys understood my idea, expecting some tips.
ID:155115
Sep 12 2011, 11:43 pm
|
|
In response to Hassanjalil
|
|
Is not what I was expecting but till pretty good, thanks for your effort in commenting the code, it helped alot to understand what you did.
Thank you for your time. |
In response to IronLawler
|
|
Essentially you can use the /area prototype for...defining the separate areas on the map. Then you can just develop functions as necessary to keep track of the players inside, etc...
Enter(), Entered(), Exit(), Exited(), and several other functions will help you with keeping track of the players inside of an area. The contents var will also be handy. |
and you will have to do most of the bits and peices on your own