Author |
Message |
TieR
Joined: 24 Jan 2009 Posts: 1
|
|
Radio from Cities |
|
Hi,
can cities comunicate via radio?
And if not, wouldn't it be a nice feature?
Thanks
TieR
|
|
Sun Nov 07, 2010 12:15 am |
|
 |
Kender

Joined: 25 Jun 2009 Posts: 18
|
|
|
|
Yes, cities can also use the radio.
Sun Tzu uses this so its cities request help from different nearby units based on both the type of enemy unit nearing as well as the terrain type it is on. They also act as relays to pass on information broadcast by nearby bots to make the message travel further.
|
|
Wed Nov 10, 2010 8:25 pm |
|
 |
tails
Joined: 10 Jun 2008 Posts: 191 Location: Tokyo |
|
|
|
How do cities cast radio signals?
To my understanding about cities, only "build" is called and "think" is not called. And "build" can only return an integer, thus unabe to cast radio.
Am I missing anything?
|
|
Thu Nov 11, 2010 1:17 am |
|
 |
Kender

Joined: 25 Jun 2009 Posts: 18
|
|
|
|
I had to decompile Sun Tzu since I seem to have lost my sourcefiles, but it seems I simply use
this.radio[x] = y
in my build method.
|
|
Thu Nov 11, 2010 7:10 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|