Help with Script. Random nearby cell & teleport

Post » Sun Aug 18, 2013 9:55 am

Hello,

I would like to know if there is a way to do the following. Find a random nearby cell from the players position free of enemies. In the specific cell find a spot with no objects and teleport the player there.

Sounds simple enough, but I can't figure out how to find a random cell nor how to check for a free spot on it.

Any hints?

Thanks in advance!

User avatar
Patrick Gordon
 
Posts: 3366
Joined: Thu May 31, 2007 5:38 am

Return to Fallout: New Vegas