public static void CmdNPCTestSpawnJedi(G.Entity pent) { G.Entity[] spawn_targets = pent.RetrieveTargets(); foreach (G.Entity ent in spawn_targets) { jedis.Add(G.SpawnNPC(possible_jedis[rnd.Next(possible_jedis.Length)], ent.origin, 180)); } }
public static void CmdNPCTestKillJedi(G.Entity ent) { AIChat(string.Format("Killing ^4{1}{0} jedi NPCs from NPC Test Zone.", cc, jedis.Count)); foreach (G.Entity jedi in jedis) { jedi.npc.Kill(); } jedis.Clear(); }
public static void CmdNPCTestKillSith(G.Entity ent) { AIChat(string.Format("Killing ^1{1}{0} sith NPCs from NPC Test Zone.", cc, siths.Count)); foreach (G.Entity sith in siths) { sith.npc.Kill(); } siths.Clear(); }
public static void CmdTest3(G.Entity ent) { G.Entity activator = ent.activator; if (activator != null && activator.player != null) { AIChat(string.Format("{1}{0} activated ent test 3.", cc, activator.player.name)); } else { AIChat("ERROR: Test 1 FAILED"); } }
public static void CmdNPCTestKillAll(G.Entity ent) { AIChat(string.Format("Killing all ^3{1}{0} NPCs from NPC Test Zone.", cc, jedis.Count + siths.Count)); foreach (G.Entity sith in siths) { sith.npc.Kill(); } siths.Clear(); foreach (G.Entity jedi in jedis) { jedi.npc.Kill(); } jedis.Clear(); }
public static void CmdMoveTest(G.Entity ent) { AIChat("test"); }