FurryEskimo Posted March 24, 2025 Share Posted March 24, 2025 (edited) Does anyone understand how to make deployable items? I've got some code here, but for some reason it doesn't seem to work like I'd expect it to, and I'm not sure what's gone wrong. You can make it, hold it, use it, but it has no visual in the inventory, but it does in the crafting menu. return Prefab("winze_lantern_post", fn, assets, prefabs), Prefab("winze_lantern_light", lightfn, assets, prefabs), Prefab("winze_lantern_light_chain", lightchainfn, assets, prefabs), MakeDeployableKitItem( "winze_lantern_post_item", -- Item prefab name "winze_lantern_post", -- Prefab to deploy (custom, not vanilla) "winze_lantern_post", -- Bank (animations for the kit) "winze_lantern_post", -- Build (textures for the kit) "kit", -- Animation to play {Asset("ANIM", "anim/winze_lantern_post.zip")}, -- Custom asset for your prefab {size = "med", scale = 0.77}, -- Floatable data nil, -- Tags {fuelvalue = TUNING.LARGE_FUEL}, -- Burnable component deployable_data -- Deployable data ), MakePlacer( "winze_lantern_post_item_placer", -- Placer name "winze_lantern_post", -- Bank (matches your prefab) "winze_lantern_post", -- Build (matches your prefab) "placer", -- Animation for the placer nil, nil, nil, nil, nil, nil, -- Other settings placer_postinit_fn -- Placer-specific postinit function ) Edited March 24, 2025 by FurryEskimo Link to comment https://forums.kleientertainment.com/forums/topic/165038-help-with-deployable-items/ 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