Author Topic: OnRegionEnter event for GameObjectAnimator  (Read 621 times)

kalelovil

  • Newbie
  • *
  • Posts: 4
    • View Profile
OnRegionEnter event for GameObjectAnimator
« on: February 20, 2020, 01:36:03 AM »
The GameObjectAnimator class has events for OnCountryEnter and OnProvinceEnter, but no equivalent for regions.

In my current project I am using regions to represent areas of special terrain (e.g. swamps, forests, hills) with effects on unit movement speed and view range. I was hoping I could have a function on the unit subscribed to an OnRegionEnter event and within that modify its movement speed.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 7262
    • View Profile
Re: OnRegionEnter event for GameObjectAnimator
« Reply #1 on: February 20, 2020, 11:25:22 AM »
Sure, it'll be added to next beta.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 7262
    • View Profile
Re: OnRegionEnter event for GameObjectAnimator
« Reply #2 on: February 20, 2020, 02:50:27 PM »
New global events added to latest beta:

- OnVGOCountryRegionEnter
- OnVGOProvinceRegionEnter

and to GameObjectAnimator:

- OnCountryRegionEnter
- OnProvinceRegionEnter

Regards.