cashya Posted July 13, 2020 Share Posted July 13, 2020 maybe its possible independently use resurection in multi-worlds ? (4more world - master -shard - shard shard ++ ) ~~~modinfo.lua name = campfire_respawn , option = false , true ~~~modmain.lua prefabfilelist ={ campfire list~ } if GetModConfigData("campfire_respawn ") == true then table.insert(prefabfilelist ,"campfire1") table.insert(prefabfilelist ,"campfire2") end world1 modoverride.lua ["workshop-xxxxxxxxxxx"]={ configuration_options={ campfire_respawn = false }, enabled=true }, world2 modoverride.lua ["workshop-xxxxxxxxxxx"]={ configuration_options={ campfire_respawn = true }, enabled=true }, world3 modoverride.lua ["workshop-xxxxxxxxxxx"]={ configuration_options={ campfire_respawn = false}, enabled=true }, world4 modoverride.lua ["workshop-xxxxxxxxxxx"]={ configuration_options={ campfire_respawn = true }, enabled=true }, maybe its possible independently use resurrection in multi-worlds ? (4more world - master -shard - shard shard ++ ) like world 1,3 is cant use campfire respawn, and 2,4 use resurrection not testing yet, im wondering curios Link to comment https://forums.kleientertainment.com/forums/topic/120035-campfire-respawn-with-multi-worlds/ Share on other sites More sharing options...
cashya Posted July 13, 2020 Author Share Posted July 13, 2020 oops its cant independently use resurrection in multi-shards world any tips here? or in a mod that may be referred 26 minutes ago, cashya said: oops its cant independently use resurrection in multi-shards world any tips here? or in a mod that may be referred nevermind, i found it local function OnRezPlayer(inst) inst.sg:GoToState("spawn_pre") end --Campire Respawn : Code if GetModConfigData("campfire_respawn") == true then AddPrefabPostInit("campfire", function(inst) inst:AddComponent("hauntable") inst.components.hauntable:SetHauntValue(TUNING.HAUNT_INSTANT_REZ) inst:AddTag("resurrector") inst:ListenForEvent("rez_player", OnRezPlayer) end) end Link to comment https://forums.kleientertainment.com/forums/topic/120035-campfire-respawn-with-multi-worlds/#findComment-1353437 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