Author Topic: A few new LUA functions for wciow  (Read 701 times)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
A few new LUA functions for wciow
« on: 11 May 2012, 05:24:16 »
You had asked for registering an area of cells. I looked at how GAE does it and its too different to follow that approach, so i added these:

int registerCellAreaTriggerEventForUnitToLocation(sourceUnit, pos)
int registerCellAreaTriggerEventForFactionToLocation(sourceFaction, pos)

In both cases pos is a 4 value array specifying the 'box' of cells (x,y of top left, and x,y of bottom right).

Thanks

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: A few new LUA functions for wciow
« Reply #1 on: 11 May 2012, 14:36:33 »
Thanks Softcoder  :)

I've uploaded my scenario now but I will use these in the next scenario I make  :thumbup:
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0