I am setting up a lot of regions where if you click a button it picks up an item in that region and puts in your inventory if you are standing next to the item. I came up with individual triggers and it works fine but I'm worried it will lag so I wanted a switch statement. I'm still new but I noticed other people use switch statements so I'm guessing it's to help with lag or maybe just clean up mass triggers. I can't find a switch statement for what region your hero is in. The closest I got were center of region and point but those are too specific of a position and aren't working. Would a switch statement even be necessary? Or should i stick with my current trigger for every item with event: dialogue button pressed and condition: unit in region.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am setting up a lot of regions where if you click a button it picks up an item in that region and puts in your inventory if you are standing next to the item. I came up with individual triggers and it works fine but I'm worried it will lag so I wanted a switch statement. I'm still new but I noticed other people use switch statements so I'm guessing it's to help with lag or maybe just clean up mass triggers. I can't find a switch statement for what region your hero is in. The closest I got were center of region and point but those are too specific of a position and aren't working. Would a switch statement even be necessary? Or should i stick with my current trigger for every item with event: dialogue button pressed and condition: unit in region.