Luft08 27 Posted March 26, 2020 I need to determine which side of the East/West German border a player is located on the Weferlingen summer map. I don't want the East Germans shooting across the border. At first I though I would use triggers but it takes a LOT of triggers to get the granularity I need. So I though I would bite the bullet and do some kind of ray trace and count the number of times the ray crosses the fence line. Odd number and they are valid targets, even and they are safe. However I don't know how to define the polygon from the fence/wall. Can code be written to do that automatically or must I painstakingly define each point by hand? Thanks Share this post Link to post Share on other sites
Dedmen 2590 Posted March 27, 2020 10 hours ago, Luft08 said: At first I though I would use triggers but it takes a LOT of triggers to get the granularity I need Just don't use triggers. Make the polygon of one side of the border and use https://community.bistudio.com/wiki/inPolygon 1 Share this post Link to post Share on other sites
Luft08 27 Posted March 27, 2020 Dedmen, You are a god! Thank you! Share this post Link to post Share on other sites