Non Playing Characters
- Last UpdatedJul 04, 2023
- 1 minute read
An NPC is a Non Playing Character. This is an avatar not driven by a player, but managed by artificial intelligence.
EYESIM provides functions to implement simplified NPCs to display in the virtual plant.
To create a NPC
-
Create a defines to set the initial position for the NPC.
-
Use a template called robot_template, which is available in the EYESIM core.
The define name and template player_name must match.
Code example
This is a code example for NPC.
<define name="simulation.NPC_name.position" value="0 0 0" />
<define name="simulation.NPC_name.orientation" value="0 0"/>
<usetemplate name="robot_template" player_name="NPC_name/>