How to add 'cover' with an object?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

How to add 'cover' with an object?

Post by GottaLove88s »

TERRAIN.TXT includes a COVERFLAGS value, which determines whether units can hide in that class of terrain, eg buildings.

OBJECTS.TXT links back to TERRAIN.TXT, so a [Bsteeple] will be defined as BLOCKING and TERRAIN Building.

But is it possible to modify OBJECTS.TXT directly, so that adding an object to a tile will not change the underlying terrain, eg. Open Ground, Rough Ground, etc, but could still add a COVERFLAGS 1 while the object is present?
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
pipfromslitherine
Site Admin
Site Admin
Posts: 9886
Joined: Wed Mar 23, 2005 10:35 pm

Re: How to add 'cover' with an object?

Post by pipfromslitherine »

I don't think so, as the cover state comes from terrain IIRC.

Cheers

Pip
follow me on Twitter here
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: How to add 'cover' with an object?

Post by GottaLove88s »

Hmm...

Thanks Pip, need to think about this one...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”