AI Lua API

From Off Grid Wiki
Revision as of 11:04, 9 May 2017 by Harry (talk | contribs) (First submit of Ai lua api)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

AI

Description

API to control the logic of AI in the mission

Functions

AlterNPCMotivation

AI.AlterNPCMotivation(characterName, motivationDelta)

Expected parameter types

characterName string
motivationDelta number

Description: Alters an NPCS motivation state

Returns: Nothing

Notes: When an NPCs motivation hits 0, they're no longer motivated and will attempt to take a break


Docs last hacked together on: 09/05/2017 12:04