J13 Serenity Posted July 23, 2018 Posted July 23, 2018 Hello I really like this script and use it a lot But can anyone tell me how to make WW2 infantry spawn with halftracks? Even if I change name from M4 to M1 garand (according to mission editor name) i either get M4 soldier spawn or Leopard tanks. The script file is attached here The original location is here: https://forums.eagle.ru/showthread.php?t=109676 Please help Thank youDismountsScript.lua
Zayets Posted July 23, 2018 Posted July 23, 2018 Quickly glancing over script it looks like return values are hardcoded in the script itself so you will probably have to modify the script itself [sIGPIC]OK[/sIGPIC]
J13 Serenity Posted July 23, 2018 Author Posted July 23, 2018 Would be great if anyone explained me how to do it!
EasyEB Posted August 3, 2018 Posted August 3, 2018 Open the script in a text editor, find the unit type names that you want to replace (for example "Infantry AK"), and type in the unit type name that you want.
J13 Serenity Posted August 5, 2018 Author Posted August 5, 2018 Thanks for reply I tried that For example, Instead of Infantry AK and M4 (all of them in the script) I inserted "Soldier M1 Garand" (same as in mission editor) But instead of any infantry my halftracks started to spawn Leopard tanks!!! When I changed ZU-23 to Bofos - ZU-23 was still spawning as before When I changed Skill level for units to Excellent - They still had old level in effect. That's why I decided to ask here on the forum, something different must be changed, but what?
EasyEB Posted August 5, 2018 Posted August 5, 2018 I don't have the ww2 packs so I can't test it myself it sounds like it's a unit type name issue.
J13 Serenity Posted August 5, 2018 Author Posted August 5, 2018 May be you are right. Would you have time to test something else then? Like make it spawn shilka or roland instead of ZU-23? Just to make sure that changing names does work. Because for me any changes either have no effect or spawn leopard tanks.
feefifofum Posted August 5, 2018 Posted August 5, 2018 Place one of the M1 guys in a single player mission and have him shoot/get shot so it generates an event in the debriefing screen. You should be able to get the correct unit name there or in the lua for the unit wherever that's buried. THE GEORGIAN WAR - OFFICIAL F-15C DLC
J13 Serenity Posted August 6, 2018 Author Posted August 6, 2018 Yes! It works partly It is true that editor names and in-game are different For example "Soldier M1 Garand"=soldier_wwii_us I changed all "soldier M4" to m1 garand ones and all "soldier AK" to mauser But now all infantry for both sides is M1 garand May be it takes third reich as a blue faction? Can anyone tell me how to check that?
feefifofum Posted August 6, 2018 Posted August 6, 2018 In the "Default" coalitions setting the Third Reich is in the "neutral" category as are other non-current entities such as the USSR. Hit file -> new and select the WW2 coalition preset (or manually move the Third Reich to REDFOR) and hopefully that should correct the issue. If you've already started building something and have invested significant time, you can also check out Grimes and Uboats' coalition mod (just add/replace the files following the same directory structure in the main game directory) which allows you to move entities between coalitions in an already existing mission. THE GEORGIAN WAR - OFFICIAL F-15C DLC
J13 Serenity Posted August 6, 2018 Author Posted August 6, 2018 That's right But in my mission Third reich is in red coalition. Also, even though I am using correct bofors40 and flak30 names, my trucks spawn Leopars 2 tanks...
feefifofum Posted August 6, 2018 Posted August 6, 2018 Sorry, no idea there. I haven't tried to dynamically spawn any of the WW2 stuff. :dunno: THE GEORGIAN WAR - OFFICIAL F-15C DLC
Recommended Posts