Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override void CompTick()
- {
- Pawn pawn = this.parent as Pawn;
- if (pawn.needs.food.CurLevelPercentage >= 0.1f)
- {
- for (int i = 0; i < this.Props.pawnCount; i++)
- {
- Log.Message("Spawning");
- Log.Message("PawnKind: "+ this.Props.pawnKind);
- Log.Message("PawnCount: "+ this.Props.pawnCount);
- PawnGenerationRequest request = new PawnGenerationRequest(this.Props.pawnKind, pawn.Faction, PawnGenerationContext.NonPlayer, -1, false, true, false, false, true, false, 1f, false, true, true, false, false, false, false, null, null, null, null, null, null, null, null);
- Pawn spawn = PawnGenerator.GeneratePawn(request);
- }
- pawn.Destroy(DestroyMode.Vanish);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement