-
Posts
27 -
Joined
-
Last visited
-
I hope that functions can be added to the Warehouse/Airbase , something like: Warehouse:setDynSpawnTempl(typeName, templateGroup/GroupId). typeName - for aircraft type in the airbase's inventory; templateGroup/GroupId - the Group to set as template. I think this will be very helpful for mission creators or server holders who want to better control their missions using scripts!. That is, if it's able, I would use this function after I spawn a FARP through script with dynamicSpawn = true. Which is especially helpful when I want to control the use of AI copilot and loadout(guns & chaff, flare). If there is any other way to achieve that, I will be so thankful if you can let me know! Thank you!
-
+1 vote, I have been looking forward to this feature for a long time!
-
Hello, I can't see FPLN MGMT and ALTN MGMT page in the latest version of CH-47, but from my tests, I can enter those pages but have an error displaying them. Screenshots from older version: FPLN MGMT page: ALTN MGMT page: I have tried out those: 1) In current version, when I do "IDX"->"↓ key"->"CDU key 3->" and it gives me a FPLN page. But I can use FPLN MGMT functions if I remember where its corresponding key is. e.g. I can ERASE FPLN by clicking "CDU key 1<-". I can confirm FPLN is deleted from central MFD & CDU. 2) For ALTN MGMT, when I do "IDX"->"↓ key"->"CDU key 4->", it gives me a black screen. But pressing buttons also works like 1). 3) For the ALTN page, when I do "IDX"->"CDU key 4->", it gives me PROCEDURE/PATTERNS page. But again, pressing buttons also works like 1). My .trk performs the same as I mentioned above: CH47 issue.trk
-
I'm open to using scripts, but every time I use the script "controller:setTask()" to create a "Land" task, no matter how I set it, even if I use the same table structure as in the "mission" file, it will ultimately cause the game to crash. Thanks for your answer. It has provided me with some inspiration. The workaround I mentioned above actually achieved a similar effect, but the drawback is that the AI can't stay on the ground waiting from the beginning. An urge makes it have to randomly move or rotate a certain distance, which is not good. The uncertain movement will make it impossible to place static objects or units around it to create some "pre - battle preparation" scenarios. I hope there can be a way, or ED can create an option to make it not execute the waypoints so urgently after the engine starts or after a hot spawn.
-
Unlike the "Uncontrolled", this option is to make an AI helicopter start its engine but not yet proceed to its waypoint. Just stay still, on the ground. It's easy for planes to put obstacles to block AI from taxiing. For an AI helicopter, it will try to take off and proceed to the waypoint right after its engine is running. This option is very useful when creating a scenario that from mission start, a group of helos preparing, loading & embarking while their rotors are still spinning, taking off right after some conditions are met. I know there is a way to spawn them in air and let them land right after. But I think letting them land from the beginning looks better and it's easy for creators to put static objects or units around them. It will be better to have optional setting to open the cargo doors like "LAND - COMBAT LANDING".
-
I've figured out a workaround: right after the helicopter spawns, use the trigger "Set Internal Cargo On Unit" as quickly as possible to add some weight to it. The weight shouldn't be too large, but it needs to exceed the takeoff load. In ME, set WP1 very close to WP0 and set the "Perform Task - Land" action to the position where you want it to wait on the ground, along with setting the "On land" duration. Then the helicopter will stay on the ground with its engine running and wait. It might even keep its cargo door open. If you want to end the waiting state and take off, just set the takeoff condition in the "Condition" section and remember to remove the extra weight. By the way, the extra weight may prevent the helicopter from performing the "Embarking" task properly.
-
I know that AI helos in the Player group will just stay on the ground until the player takes off. But how can I get a whole AI group of helos to wait until certain conditions are met, and then take off? Especially wait on ground after cold start. I know I can make them spawn in air then land and wait, but...it doesn't look...smooth...so... I've given these a shot, and none of them seem to work: 1) I set the option - Prefer Take Off/Land Vertically to false, and then put an obstacle on the taxiway. 2) I set Embarking at way point 0, trying to make it wait for the troops. If anyone's got any ideas, I'd be really thankful if they'd share 'em.
-
Changes to the behaviour of net.dostring_in()
Buta replied to BIGNEWY's topic in Scripting Tips, Tricks & Issues
Thank you very much for using your precious vacation time to answer questions! Last week, I tried and found that net.dostring_in('mission',... ) can be used to call functions that are not available in Mission scripting in the mission environment, such as trigger functions in ME (those 'a_*' series of functions). For example, if I want to "dynamically" show pictures to several player units, I can use the following method: -- assume I have defined 'imgPath', 'unitID' local cmdString = string.format('a_out_picture_u(%d, "%s", %d, %s, %d, "%d", "%d", %d, "%d")',unitID, imgPath,1,'false',0,1,1,30,0) net.dostring_in('mission',cmdString) If used in this way, there will indeed be a large number of net.dostring_in() in the script. So sad that this has been changed just after I found them out XD. -
Changes to the behaviour of net.dostring_in()
Buta replied to BIGNEWY's topic in Scripting Tips, Tricks & Issues
If a beginner wants to get started with DCS mission scripting, how should they learn it? I've used the APIs mentioned at https://www.digitalcombatsimulator.com/en/support/faq/scripting_engine/ and created several missions like dynamic helicopter logistics and custom dynamic campaigns for MP servers. I don't have any other "teachers" currently. Now I want to learn about "net", especially the "net.dostring_in()", but I find it very difficult to find relevant documents. I’ve checked Hoggit’s documentation (which has been incredibly helpful!), but noticed the "net" section hasn’t been updated in some time. Guessing or testing trial-and-error has slowed my progress, and I’d really value concrete guidance. Thanks for your help.
