AI Lua API: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
m (Rich moved page AI Lua API to Lua Apis/AI Lua API without leaving a redirect: organising innit)
(organising innit)
Line 1: Line 1:
{{OffGridDocStart}}
= AI =
= AI =
== Description ==
== Description ==

Revision as of 16:33, 22 June 2017

Template:OffGridDocStart

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