How to make scripted region?

I want make my game Speed Sim but i dont know how to make region with script, pls help

I don’t think you can make a region with an entity script.
Instead, you need to use World script (Global script).

  1. Go to the entity and click the script icon on the right.
  2. Create a new script.
  3. Set the trigger of the new script to “when unit touches a region”
  4. Add an if statement: if ((name of (last triggering region)) == (your region name))
  5. Write whatever function you want inside the if script. It will be executed when a unit enters the region.