示例#1
0
        public static void SpawnCustomDemoPlayer()
        {
            CustomDemoPlayer aiPlayer = SpawnOnPath("MyCustomNPC", "MissionGroup/Paths/team1Path");

            if (aiPlayer == null)
            {
                omni.console.error("UNABLE TO SPAWN MONSTER!@!!!!!a");
                return;
            }
            if (!omni.console.isObject(aiPlayer))
            {
                omni.console.error("UNABLE TO SPAWN MONSTER!@!!!!!");
                return;
            }


            aiPlayer.FollowPath("MissionGroup/Paths/team1Path", 0);
            aiPlayer.setMoveSpeed(0.8f);

            aiPlayer.setInventory("Lurker", 1);
            aiPlayer.setInventory("LurkerClip", 1000);
            aiPlayer.setInventory("LurkerAmmo", 1000);
            aiPlayer.setInventory("LurkerGrenadeLauncher", 1);
            aiPlayer.setInventory("LurkerGrenadeAmmo", 10);
            aiPlayer.setInventory("ProxMine", 5);
            aiPlayer.setInventory("DeployableTurret", 5);

            aiPlayer.mountImage("LurkerWeaponImage", 0, true, "");


            TransformF t = aiPlayer.getTransform();

            t.mPositionZ += r.Next(0, 200);
            aiPlayer.setTransform(t);
            aiPlayer.Think();
        }
 public static void doThink(CustomDemoPlayer ai)
     {
     ai.Think();
     }
示例#3
0
 public static void doThink(CustomDemoPlayer ai)
 {
     ai.Think();
 }