Lopalmcivet _ 5 Posted July 8, 2022 I found that unitcapture can't record the player's landing gear lowering , and I want to record an AI aircraft landing on an carrier , but if AI doesn't know how to put down his landing gear, it's all out of the question unit action ["LandGear", unit]; will not work,it's only for player or when player in that vehicle it's work,if don't it's not work any idea?????plz help Share this post Link to post Share on other sites
Ibragim A 163 Posted July 8, 2022 As the wiki says, in order to use landgear for AI, the action must be done on every frame. Have you tried this way? Quote LandGear Description Lowers the landing gear of an aircraft. In the case of AI-controlled aircraft, it has to be used in an each-frame loop to to override the AI behavior (otherwise they'll raise the landing gear when they take off). 1 Share this post Link to post Share on other sites
Lopalmcivet _ 5 Posted July 8, 2022 1 hour ago, Ibragim A said: As the wiki says, in order to use landgear for AI, the action must be done on every frame. Have you tried this way? shit it's work , you are god ! Share this post Link to post Share on other sites
Ibragim A 163 Posted July 8, 2022 Well, you're exaggerating! Share this post Link to post Share on other sites
Lopalmcivet _ 5 Posted September 27, 2023 seems like it doesn't work anymore,anything changed? Share this post Link to post Share on other sites
Joshua9797 38 Posted September 27, 2023 Apart from the onEachFrame. Have you tried: unitName action ["LandGear", vehicleName]; //Alternatively driver vehicleName action ["LandGear", vehicleName]; //or unitName action ["LandGear", vehicle unitName]; In your example, you used unit (unitName) instead of vehicleName. By the way, the command works for me even without an onEachFrame. But in multiplayer, it still doesn't work every time, even though it has a global effect. Maybe I'm missing the onEachFrame there. Share this post Link to post Share on other sites
Lopalmcivet _ 5 Posted September 27, 2023 1 hour ago, Joshua9797 said: Apart from the onEachFrame. Have you tried: unitName action ["LandGear", vehicleName]; //Alternatively driver vehicleName action ["LandGear", vehicleName]; //or unitName action ["LandGear", vehicle unitName]; In your example, you used unit (unitName) instead of vehicleName. By the way, the command works for me even without an onEachFrame. But in multiplayer, it still doesn't work every time, even though it has a global effect. Maybe I'm missing the onEachFrame there. these code only work if player in the vehicle,but what I want is a unitcaputre plane unit put down its gear without player in it Share this post Link to post Share on other sites
Joshua9797 38 Posted September 27, 2023 Ah, okay, I think I see the problem now. The "action" function only works on a unit. So either a player or an AI. In your case, you'll need to place an AI in the driver's seat. You can achieve this through a script by doing the following: //inside e.g. Trigger _crew = createGroup [civilian, true]; _unit = _crew createUnit ["B_helicrew_F", [0,0,0], [], 0, "NONE"]; _unit moveInDriver vehicleName; _unit action ["LandGear", vehicleName]; Share this post Link to post Share on other sites