Advertisement

  VR Random Urban Area Generator Script by Zenophon
Editing and Scripts
 

Zenophon released his VR Random Urban Area Generator Script on the BI forums.

    Quote :
    This script generates a randomized, urban-like area using the new generic VR structures. It is a simple implementation, and it is mostly meant for arena-style PvP missions or CQB practice vs. the AI. You can use this function to quickly have fun in the editor, or generate a complex VR city block by block.

    The function uses a grid system to evenly distribute large structures and small cover objects. It uses a rectangular area marker to define the boundaries of the area. The size of each grid, each of which contains one large structure, and how many smaller objects there are per grid are entirely customizable. Each object is randomly placed and rotated within the grid.

    The function is very fast, generating large areas in less than a second, and it can be used as many times as you need. There is no debug, argument checking, or defensive code, to make it as simple and fast as possible, so make sure the arguments are correct.

    Changelog:
    • Improved: Area can now turn with marker angle
    • Improved: Object rotation stays at right angles to the marker angle
    • Legal: Added license


Written on 2014-07-15 19:16 by Zenophon  

User submissions

Submit News Submit Files

Advertisement