This document provides URLs for the r4 official online store in Germany, Netherlands, and Italy. It also provides instructions for controlling an entity by making it controllable, setting up its AI, and performing actions on it. The AI can be used for automatic movement, targeting, and reactions. Custom actions can override the AI but may still require some of its functions.
Alexander Janssens & Gert-Jan van Rooij- Getting started with API
R4
1. r4
r4 Official Online Store
Store:
Germany:
http://www.r4ikarter4.org
Netherlands:
http://www.r4kaartr4i.org
Italy:
http://www.r4revolutionr4i.com
Basic steps
1 make an entity controllable
2 set up its AI
3 control it (take actions)
Make an entity controllable
By default entities are not controllable. You have to pick one entity and make it controllable.
Read this tutorial to see how it works!
Set up the AI
This step is optional. You can delete or modify the AI of the controlled entity. Read this tutorial to
see how it works!
What the AI is for:
• automatically move or look around
• automatically assign targets
• determine how the entity deals with its target (follow? melee attack? ranged attack?)
• react to other entities or the environment
Perform actions
This step is optional as well, but you most likely want to go through it. You can order the entity to
do specific actions. Read this tutorial to see how it works!
2. What actions are for:
• move or look at a given location
• set a custom target
• minor others (jump, die, ...)
Custom actions override the actions assigned by the AI. However, some parts of the AI are required
to successfully execute custom actions.
r4 Official Online Store
Store:
Germany:
http://www.r4ikarter4.org
Netherlands:
http://www.r4kaartr4i.org
Italy:
http://www.r4revolutionr4i.com