Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354Wander======
.. include:: ../version.rst
Wander nearby current position.
**Arguments**
.. list-table:: :header-rows: 1 :widths: 20 20 60
* - name - type - description * - type - string [required] - the name of the package (see packages listed below) * - distance - float [default=0] - the actor to follow * - duration - number [optional] - duration in game time (will be rounded up to the next hour) * - idle - table [optional] - Idle chance values, up to 8 * - isRepeat - boolean [optional] - Will the package repeat (true or false)
**Example**
.. code-block:: Lua
local idleTable = { idle2 = 60, idle3 = 50, idle4 = 40, idle5 = 30, idle6 = 20, idle7 = 10, idle8 = 0, idle9 = 25 } actor:sendEvent('StartAIPackage', { type = 'Wander', distance = 5000, duration = 5 * time.hour, idle = idleTable, isRepeat = true })