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).
- Go to the entity and click the script icon on the right.
- Create a new script.
- Set the trigger of the new script to “when unit touches a region”
- Add an if statement: if ((name of (last triggering region)) == (your region name))
- Write whatever function you want inside the if script. It will be executed when a unit enters the region.