Author: Tophe
Author Website:

Requirements: No addons required

Version: 0.9

Short description:

Date: 2007-03-14 02:40

Comments: (4)


Random House Patrol Script

This script will allow you to have a unit patrol a house, randomly.

All you need to do is place a unit close to a building and init the
script on it. The script will then check how many available building
positions there are in the closest building of the unit, and place him
randomly at one. Then he will start patrolling the building.

Every time the unit reaches it's waypoint inside the house it will
stay and wait for a short while, before moving to the next point.
The amount of time the unit waits is also random. So you'll never
really know how long the unit will stand still.

I included an example mission for you to quickly see the result
of the script in the editor.

There is a bug in ArmA that sometimes keeps a unit from
reporting that it has finished or failed a move command.
This script contains a workaround to that bug. This means
that when the bug kicks in the unit will stay for up to
90 seconds before moving on. This, however, does not happen
very often. As soon as BIS has fixed this bug I will release
version 1.0 and have the workaround removed. The next version
will also have a few more options for you to set.

This script is based on my earlier Random Building Position Script.

I hope you'll enjoy it and that it will help you in your
mission making.

* Put the script in your mission folder

* In Multiplayer put an empty game logic named "server" on the map.

* Put this:
guard = [this] execVM "HousePatrol.sqf"
in the init field of a unit and put it close to a house.

You may also set the behaviour of the unit by putting the
prefered behaviour in the array.

Like this:
guard = [this,"COMBAT"] execVM "HousePatrol.sqf"
You may put any of these five:
    * "CARELESS"
    * "SAFE"
    * "AWARE"
    * "COMBAT"
    * "STEALTH".

    If you don't put anything the default "SAFE" will be set.

Enable javascript to be able to download from Armaholic please!

Tags: No tags