ScenEdit_GetSides?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
I1066
Posts: 86
Joined: Tue Oct 22, 2013 3:26 pm

ScenEdit_GetSides?

Post by I1066 »

I'm trying to create some generic library functions which have no "dependencies" and which would "just work" in any scenario.

In order to do this I would like to programmatically figure out as much as possible about the runtime environment and scenario characteristics within these "library functions".

I've managed to figure out some things, but I can't find any way to get the sides for the current scenario, have I missed something here, or is this not possible?
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

RE: ScenEdit_GetSides?

Post by TitaniumTrout »

So you're looking for a way to query which sides are present in the scenario?

I can see a few ways to query a known side for details but not one to list all of the sides.
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: ScenEdit_GetSides?

Post by michaelm75au »

Most functions revolve around you knowing which side to look at. There is currently no function to return 'all sides'.
Michael
Post Reply

Return to “Lua Legion”