Teardown
Piano Fall Weapon
Jiffy UP  [开发者] 2022 年 4 月 30 日 下午 3:35
Cloning objects in-game
Title says it all. Found a mod on steam, but that is waaay above my league. Does anybody have any suggestions? As in maybe how to create a .xml file from object with lua? Any other approaches you might think of?
< >
正在显示第 1 - 8 条,共 8 条留言
Zigbert 2022 年 5 月 6 日 上午 6:18 
You should be able to create an XML string from a script, and if you want to make it spawn objects from other mods, there is a way but I don't know how, I'll try to figure it out
Zigbert 2022 年 5 月 6 日 上午 6:18 
As in you should be able to just get the file path and put it into the XML file string thing
Jiffy UP  [开发者] 2022 年 5 月 6 日 上午 6:40 
I'm there with you on method, but maybe you are more experienced in lua to be able to actually create a script. So firs we need to find a body that is being targeted, find it's base group and SOMEHOW convert it to .xml. The first part is kind of doable, but the second; what command do we use to make a prefab? Any luck yet?
Zigbert 2022 年 5 月 6 日 下午 5:00 
Well making an XML would be super easy, you could just make it with a string from Lua, the only thing is that things with tags and special properties would not be kept
Zigbert 2022 年 5 月 6 日 下午 5:03 
We are in different time zones but I can talk to you about it in a about 6 hours
Zigbert 2022 年 5 月 6 日 下午 5:05 
If you trust me you could send me the main.lua of the mod on discord, then I could send it back with the XML stuff working
(Zigbert on Teardown discord)
Jiffy UP  [开发者] 2022 年 5 月 7 日 上午 1:33 
Had a talk with modder Murdoc through Discord yesterday where he brought to my attention that even with .xml in your MOD folder, there'd be a problem with accessing .vox for models.
So - bullet dodged. Anyways, he said it should be possible via "Spawn(modID:prefabPath/prefab.xml, position) " command, but the ID part is currently bugged.
BUT i'd like to thank you for the offer, because if the problem wasn't exposed, i'd gladly take it ;).
Book Simon 2022 年 6 月 28 日 上午 9:42 
ghost and pals
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50