Thursday 26 March 2015

rain_unity_Way_Point_Route_Enemy_Detection




1.Import RAIN package software from store either 4.6 or 5.2.

2.First select the player

3.Then goto RAIN window at the top of file menu

4.Create New AI.

5.Next you have to select Waypoint Route from the RAIN Menu

6.Next add Waypoints how many you want. (Waypoint Rig Inspector ==> Click add(Ctrl+W))

7.Next select Navigation mesh from Rain a square-box will open adjust the box into the waypoints (RAIN==> Create Navigation Mesh)

8.Next click on generate Navigation mesh (at Inspector(NavMesh Rig Component))

9.Next open the Behavior Editor from RAIN. create New behavior tree. Give the name what you want.

10.Next from behavior tree right click create root ->Decisions ->Waypointpath or patrol.

11.Next give the name in way-point route and in move target Variable.

12.Next create->Action->move to the before node.

13.Next give the same name given in move target variable to the variable in the move and how much speed you want to move the player.

14.Finally player will move in his route.


FOR Player Detection when he goes in his range


15.select parallel node from behavior tree.

16.Next select create->Action->detect give sensor name given in which player he want to detect given in entity and Aspect name should be same in player entity in quotations("")

17.Next give the same variable given above in the move position

No comments:

Post a Comment