CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> Using weapons as AI
https://www.captainsim.org/forum/csf.pl?num=1565440659

Message started by glassman2005 on Aug 10th, 2019 at 12:37pm

Title: Using weapons as AI
Post by glassman2005 on Aug 10th, 2019 at 12:37pm
I have briefly scanned thru the prior posts and I didn't think I saw an answer.   Sorry if this is a repeat.   I'm trying to use some of the simobjects as AI that I control through a SimConnect C++ program.   As an example, I am testing with the AIM9 missile.  It does get created in the sim environment, and it does explode on impact with the ground, but the rocket engine does not start, so the rocket just creates and falls straight to the ground without any forward thrust.  I tried doing a SetDataOnSimObject to set Combustion to 1, and I have tried sending a set of waypoints to the rocket, but but neither of these seemed to work.  Is there a particular message (or sequence of messages) I can send (via SimConnect) to CS Weapon SimObjects in order to get their engines to light up and propel the rockets forward?   

Title: Re: Using weapons as AI
Post by Captain Sim on Aug 16th, 2019 at 11:38pm
Our Weapon SimObjects are not regular sim AI objects, they are 3D models that are totally controlled by our custom code that calculates all the weapons' physics.

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.