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
- Open Asset Browser.
- Go to entityDef → ai → fodder → imp decl. (Alternatively, you can use the search and filter functions to find the imp entityDef.)
- Right Click on the imp thumbnail, then select Edit in the context menu.
- The Decl Editor will open, displaying the properties for the imp entityDef.
- In the Decl Editor, expand Render Model Info.
- In the Render Model Info, locate Scale.
- Change the scale unit to 3.
- Click Save. (You can also simply hit Ctrl + S to save.)
- To test in engine, open the Console (type ~) and use the console command:
spawn ai/fodder/imp
Make an AI faster
- Open Asset Browser.
- Go to entityDef → ai → fodder → imp decl. (Alternatively, you can use the search and filter functions to find the imp entityDef.)
- Right Click on the hellknight thumbnail, then select Edit in the context menu.
- The Decl Editor will open, displaying the properties for the hellknight entityDef.
- In the Decl Editor, expand AI Editable.
- In the AI Editable, expand Difficulty Settings.
- In Difficulty Settings, locate Anim Rate Scale.
- Change the rate to 1.75.
- Click Save. (You can also simply hit Ctrl + S to save.)
- To test in engine, open the Console (type ~) and use the console command:
spawn ai/fodder/hellknight