-
Notifications
You must be signed in to change notification settings - Fork 0
Order system
KAI NPCs can be made to follow certain orders that can change their behavior, including being able to be given said orders by specific actors. Such as being ordered to follow the actor that commanded them to do so. Like other features such as hazards and NPC groups, the order system is kind of a blank slate on its' own for the most part. It can however be made to also work in conjunction with the latter, such as only accepting orders from other group members.
A list of all the built-in orders and the CurrentOrder variable that stores the currently followed order can be found here
The primary and only real normal function of the order system is SetNPCOrder(), which is how the current order of an NPC can be changed properly. Alongside with its' ACS counterpart, both can be found here. The order system also uses the OnOrderChange() and AfterOrderChange virtual functions, which can extend or modify the behavior of SetNPCOrder() like OnWander() does for KAI_Wander()
- Home
- Features
- Classes
- Functions
- Guides