Elin Modding Docs Doc
Loading...
Searching...
No Matches
GoalSpot.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x02000238 RID: 568
5public class GoalSpot : Goal
6{
7 // Token: 0x06000FE2 RID: 4066 RVA: 0x0007224B File Offset: 0x0007044B
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 Trait random = EClass._map.Installed.traits.GetTraitSet<TraitSpotSearch>().GetRandom();
11 if (random != null)
12 {
13 yield return base.DoGoto(random.GetRandomPoint(null), 0, false, new Func<AIAct.Status>(this.Cancel));
14 this.owner.SetAI(new GoalSearch());
15 }
16 yield break;
17 }
18}
Definition AIAct.cs:7
Definition Goal.cs:5
Definition Trait.cs:9