Desblat Posted February 8, 2014 Share Posted February 8, 2014 How to add prefabs, who use 1 file, into game? (like bishop and nightmare-bishop)How to code them into modmain.lua? I tried to use bishop(nightmare-bishop) file there are 2 prefabs coded. I just copied "bishop.lua" renamed and remade last strings in it. So I got:..........return Prefab("chessboard/bishop2", function() return MakeBishop(false) end , assets, prefabs),Prefab("cave/monsters/bishop_nightmare2", function() return MakeBishop(true) end , assets, prefabs)And written those prefabs into modmain.lua: PrefabFiles ={ "bishop2", "bishop_nightmare2" } But I got error. Please help me. Link to comment https://forums.kleientertainment.com/forums/topic/31473-mod-help-how-to-make-prefabs-who-use-1-file-into-game-like-bishop-and-nightmare-bishop/ Share on other sites More sharing options...
Desblat Posted February 9, 2014 Author Share Posted February 9, 2014 Already solved. Link to comment https://forums.kleientertainment.com/forums/topic/31473-mod-help-how-to-make-prefabs-who-use-1-file-into-game-like-bishop-and-nightmare-bishop/#findComment-413865 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now