- Home /
Fleeing AI......
I have this script set up so when the character approaches a game Object It flees away to a waypoint. What I would like to do is add many waypoints so that the game object chooses which way point to follow by random. How can I do that?
using UnityEngine;
using System.Collections;
public class Fleeing : MonoBehaviour {
Comment
Answer by Maltus · Nov 29, 2010 at 03:52 AM
I would have an array of Vector3 [positions] and build a function that would return a position at random, from said array.
Your answer
Follow this Question
Related Questions
make an AI Flee 0 Answers
Help With Waypoints script 1 Answer
AI fleeing from multiple enemies 0 Answers
AI fleeing - 1 Answer
Complete AI Tutorial? 1 Answer