I want to create a character that, at one point is ‘friendly’ and will do its best to avoid you. But at any time can turn hostile and attack you (without being provoked). what script should i use to achieve this. Thanks.
Random.Range(0,4) is a good place to start.
How much of your script do you have so far?