Skip to main content

Simple Modifications of an AI

In these tutorials, you’ll learn to make simple modifications on an AI by making an imp larger and making a hellknight faster.

info

To test these AI modifications, you’ll need:

  • a map to place your AI in (you can use the Simple Box Map)
  • navigation mesh placed in the map to give the AI an area to exist (otherwise it will die as soon as it is spawned)

Make an AI larger​


  1. Open Asset Browser.
  2. Go to entityDef → ai → fodder → imp decl. (Alternatively, you can use the search and filter functions to find the imp entityDef.)
  3. Right Click on the imp thumbnail, then select Edit in the context menu.
  4. The Decl Editor will open, displaying the properties for the imp entityDef.
  5. In the Decl Editor, expand Render Model Info.
  6. In the Render Model Info, locate Scale.
  7. Change the scale unit to 3.
  8. Click Save. (You can also simply hit Ctrl + S to save.)
  9. To test in engine, open the Console (type ~) and use the console command: spawn ai/fodder/imp

Make an AI faster​


  1. Open Asset Browser.
  2. Go to entityDef → ai → fodder → imp decl. (Alternatively, you can use the search and filter functions to find the imp entityDef.)
  3. Right Click on the hellknight thumbnail, then select Edit in the context menu.
  4. The Decl Editor will open, displaying the properties for the hellknight entityDef.
  5. In the Decl Editor, expand AI Editable.
  6. In the AI Editable, expand Difficulty Settings.
  7. In Difficulty Settings, locate Anim Rate Scale.
  8. Change the rate to 1.75.
  9. Click Save. (You can also simply hit Ctrl + S to save.)
  10. To test in engine, open the Console (type ~) and use the console command: spawn ai/fodder/hellknight