Page 1 of 1

Craters

Posted: Wed Jul 01, 2015 5:09 am
by makigono1
How does one add shellholes or bomb craters to a map in the editor, please?

Re: Craters

Posted: Wed Jul 01, 2015 2:54 pm
by pipfromslitherine
I don't think you can apply damage in the editor. You would need to script in calls doing damage to an area of the map in the scenario script.

Cheers

Pip

Re: Craters

Posted: Wed Jul 01, 2015 10:36 pm
by makigono1
pipfromslitherine wrote:I don't think you can apply damage in the editor. You would need to script in calls doing damage to an area of the map in the scenario script.

Cheers

Pip
Thanks, Pip. So, I know how to set the buildings to be damaged, by editing the damage state for each one in the .bam file. Are you saying that I can do the same for each terrain tile I want to set to be damaged (i.e. shelled or bombed) in the .bam? Or am I misinterpreting? (I'm at work right now, otherwise, I'd just go ahead and try it and find out! LoL)

Re: Craters

Posted: Thu Jul 02, 2015 3:03 pm
by pipfromslitherine
No - you cannot change this in the BAM, you need to script (in the scenario BSF) adding damage to the tiles as part of the initial startup.

Cheers

Pip

Re: Craters

Posted: Thu Jul 02, 2015 5:23 pm
by makigono1
pipfromslitherine wrote:No - you cannot change this in the BAM, you need to script (in the scenario BSF) adding damage to the tiles as part of the initial startup.

Cheers

Pip
Ah. Since I don't know know how to do that, I took the coward's way out and added a new folder of terrain tiles with the type 'Crater' (stole the artwork from other folders' craters) and manually placed them on top of the terrain tiles and roads in the .BAM file. It seems to work nicely, but I will test it more thoroughly later.

Also, does anyone know how to script initial damage in the .BSF file? I presume a call to DamageTile is in order, but I don't know how to properly put it together, as the times I've tried, I've failed miserably.