Time for action - place a basic AI entity
Let's now add one of the most advanced and dynamic entities available to us within the sandbox application:
In the RollupBar, click on the Entity button.
Under the AI folder, find the Grunt tab.
Click-and-drag the entity anywhere on your terrain within the perspective viewport.
Switch to game mode near their location, and the Grunt object will immediately attack you, if you are within range.
When selecting the Grunt object, you will be presented with a huge variety of properties that have been previously set in the .lua
script in the Entity Properties section of the RollupBar. The default settings of the Grunt object will suffice for this example, but it is recommended that you experiment with some of the parameters available.
What just happened?
You have placed your first enemy and can now interact with them. Having characters to breathe some life into our story and game gives us tons of gameplay possibilities by simply placing them in progressive and...