Jump to content
Sign in to follow this  
galzohar

Find non-water position inside area

Recommended Posts

I thought about using bis_fnc_findsafepos, but that one is glitchy as hell. That is, many places simply have absolutely no safe position in any reasonable radius!

I really just need any land position within an area, that will always return a valid position, at least if such a position exists.

Of course it would be much nicer if there was something more reliable than bis_fnc_findsafepos in order to spawn stuff in a way that will not cause problems (clip with building/rock/tree, fly into sky, roll down the hill etc), but I doubt such a solution exists, so I'll just live with something that at least guarantees a land position.

Share this post


Link to post
Share on other sites

+1 on the link to Shuko. He's done some lovely stuff.

Share this post


Link to post
Share on other sites

Thanks, looking inside his script shows the command surfaceIsWater which is basically what I was looking for.

Not sure about isFlatEmpty, it's quite unclear what it does and whether or not it will give similarly weird results similar to bis_fnc_findSafePos.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×