Setting the Compass in v2.10?

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

Setting the Compass in v2.10?

Post by GottaLove88s »

Pip/Iain/Andrew,

Is it possible to set the Compass in v2.10?

It's a great new feature where, obviously, the red arm represents north.

Unluckily for me, I've setup a lot of current maps for our GJS'44 campaign, where the red arm of your new compass matches what would be West on our Normandy maps.

Is there an easy way to 'twist the compass', so that Normandy north = compass north?

Pretty much anything has to be easier than redrawinging all of the maps (because I'm certain that there's no 'rotate map' function in the Editor, right?)

Thanks!
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
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Setting the Compass in v2.10?

Post by AndrewGardner »

//Set the north direction for the compass [0, 359]
SetCompassNorth(angle)
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Setting the Compass in v2.10?

Post by GottaLove88s »

Perfect. Will experiment with that.

Foolish question, but where is the best place to put the SetCompassNorth(90)?
Will I need to put it somewhere that is called every turn? Or just at the beginning of the game?
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
AndrewGardner
Slitherine
Slitherine
Posts: 535
Joined: Tue Nov 13, 2012 6:24 pm

Re: Setting the Compass in v2.10?

Post by AndrewGardner »

You will only need to set it at the beginning of the game.
Post Reply

Return to “Battle Academy : Modders Corner ”