Infantry Occupy House Script by Zenophon
Editing and Scripts

Zenophon informed us he released an updated version of his Infantry Occupy House Script on the BI forums.

    Quote :
    This script teleports AI units into nearby buildings at appropriate window positions. Units will stand and face the window so they can fire out of it. Units are moved to random windows every time. If there are enough units, every possible window will be covered; otherwise, you won't know where they are watching. When there are multiple possible windows to face, units will face one at random. Units will not face a windows more than 5 meters away, and the windows will have a reasonable field of view.

    By using this script, you no longer have to manually place units at windows and struggle with the 2d editor. This script allows you to easily simulate the AI occupying buildings and defending their position realistically. It works for just a few units to surprise players, and on a large scale to put dozens of enemies into defensive positions all across a city.

    Greetings fellow scripters, by user request I am adding a new feature that allows the script to fill buildings from top to bottom. For example, it is able to put all 8 units on the roof of an office building in Kavala. The new optional parameter defaults to the old (random) behavior. The script has also be optimized slightly with newer SQF commands.

    • Added: Error reporting for invalid position and unit array arguments
    • Added: Error report if no buildings are found
    • Improved: Parameters 3, 4, and 5 are now optional and check for the correct type
    • Improved: Parameters 6 and 7 check for the correct type
    • Improved: AI should now stay in place better

Written on 2015-07-21 23:37 by Zenophon  

User submissions

Submit News Submit Files