I want to tell an animal ive spawned to travel to a destination and then exit map, if its attacked or interupted in some way it should be have as normal in that situation and then exitmap after a certain number of ticks.
I know how to:
so the last point is taken care of.
I tried something along the lines of:
to no avail.
Anyone have any clues?
I know how to:
Code Select
newThing.mindState.exitMapAfterTick = Find.TickManager.TicksGame + Rand.Range(10000, 12000);
so the last point is taken care of.
I tried something along the lines of:
Code Select
List<Pawn> list = new List<Pawn>();
list.Add(newThing);
StateGraph stateGraph = GraphMaker.TravelAndExitGraph(travelDest);
BrainMaker.MakeNewBrain(newThing.Faction, stateGraph, list);
to no avail.
Anyone have any clues?