Not a member yet? Why not Sign up today
Create an account  

  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
AI weapon controll filter

#1
Hello, I have a suggestion wich is about a filter for the AI's weapon cotroller, the think is, in the weapons, have a bool option wich is if you want that weapon is controlled by AI, so if I have in a turret a cannon with some missile launchers, I can control the missiles with other systems.

I think the code can be somethink like that:

array Weapons; //an array with the weapon's objets
int C;
Weapons = Find_Weapons.run() ;
for (C = 0; C ++; C < Weapons.length){
Weapon = Weapons[C];
if (Weapon.use == True){
Weapon_Controller.run(Weapon);
}
}

MAYBE something like that, I actually don't know how it's FTD script (I almost start learning unity).

Something wich can be done too, is do the wepon controller have the option of use all weapons tipe, or only use cannons, or missiles, or lasers, etc
****warning: a crazy engineer is in the thread****

Totally not me!!!!
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)