junk2drive wrote:In the bulldoze.bsf you have minefields and barbedwire listed.
I have the barbed wire in objects, not units. They work fine as objects but if course can't be cleared. Were you planning for the future?
When I wrote the code for minefields I added the barbedwire thinking I could have the same "clearing" effect. After awhile, I decided to leave it out and look at other ways of doing barbedwire.
Since we can alter the terrain file now I was thinking barbed wire as this ;
- creating a new tile that costs almost the entire infantry units AP.
- placing this new tile under the barbedwire object.
- can't be cleared, the barbedwire is nothing more than a hinderance to movement.
With that in mind, I was looking at other obstacles, like Roadblocks, using the same idea.
Now, last month I asked Pip about the tile code and he mentioned using Globals when changing tile's. So, it sounds like it's possible to "clear" barbed tiles, ie replacing the tile with another tile. It would be alot easier if we had new scripts available to us when working with objects ... functions like ;
- AddObject
- RemoveObject
These would be alot easier to use since we don't have to define them as "units".
Also, adding objects can lead the way to a random map (someday).
Merr