What's the variable for the level of a unit?

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

What's the variable for the level of a unit?

Post by GottaLove88s »

Hi guys,

Is there a variable which will report the level (geographic height) of a specific x,y coordinate on the map?
It's useful to me when I've got multi-level hills and valleys... I'd like to increase line of sight (LOS) for higher units, and decrease LOS for lower ones...

See also -> viewtopic.php?f=312&t=55299#p515365
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: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: What's the variable for the level of a unit?

Post by pipfromslitherine »

GetTileHeight wasn't hard to find ;)

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: What's the variable for the level of a unit?

Post by GottaLove88s »

Doh! Thanks Pip... :-)
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 2: Modders Corner”