I’m trying to take multiple screenshots from the view port (high res screenshot tools) and wanted to randomly generate locations within a given map using a python script and was wondering if there is a way to make a conditional statement to check that the given location is within the bounds of the landscape (not underground, outside of the map, etc.). I was thinking maybe finding the given altitude from the landscape or something? I’m rather new to unreal engine and not familiar with its python API so any help would be greatly appreciated!
do a line trace straight down from your random position and check you hit something?
I was thinking of trying it but I can’t seem to find the python code for it, what would be the code to do that?
i would think… not used the python api before
I believe so, took some tinkering with the code and parameters but got it to work, thanks!