Game Development Reference
In-Depth Information
With that we are done with our AIController script. Next, we will go back to Unity and
apply the AIController script to the AI game object by dragging it from the Project view
to the AI game object in the Hierarchy view. Then, we will go to its Inspector view and set
the following:
F Character Controller
Height : 2.25
Radius : 0.4
Step Offset : 0.4
Skin Width : 0.05
F AIController (Script)
Way Point : Waypoints (Drag the Waypoints game object to the Hierarchy
view here)
Rocket Launcher : RocketLauncher (Drag the RocketLauncher game
object inside the AI game object to the Hierarchy view here)
Player : robot (Drag the robot game object inside the First Person
Controller game object to the Hierarchy view here)
Animation : robot_AI (Drag the robot_AI game object inside this AI game
object to the Hierarchy here)
Idle Animation : idle (Drag the idle animaion inside the Chapter5/
Robot Artwork/robot@idle/ to the Project view here)
Walk Animation : walk (Drag the walk animaion inside the Chapter5/
Robot Artwork/robot@walk/ to the Project view here)
Run Animation : run (Drag the run animaion inside the Chapter5/Robot
Artwork/robot@run/ to the Project view here)
Shot Animation : shoot (Drag the shoot animaion inside the Chapter5/
Robot Artwork/robot@shoot/ to the Project view here)
The enemy will also walk for 4 minutes and stop for 2 minutes, and will jump over the wall.
 
Search WWH ::




Custom Search