MALP_AI.cs 412 B

123456789101112131415161718192021
  1. function createMALP(%trans)
  2. {
  3. (%malp = new WheeledVehicle()
  4. {
  5. datablock = MALPVehicle;
  6. }).setTransform(%trans);
  7. (%ai = new AIPlayer()
  8. {
  9. malpLinkObj = %malp;
  10. datablock = PlayerStandardArmor;
  11. scale = "0.2 0.2 0.2";
  12. }).hideNode("ALL");
  13. %malp.malpLinkObj = %ai;
  14. %malp.mountObject(%ai, 0);
  15. %ai.setMoveY(0.1);
  16. }
  17. //tick-based function to ensure both still exist
  18. //%bot.setMoveY and %bot.setMoveYaw