Nhyarlathoteps Posted April 7, 2019 Share Posted April 7, 2019 (edited) Hello, I'm programming my mod on dst and I'm having a problem. I added my prefabs with the resources and animation of the dlc Hamlet A strange glossy effect appears, it is displayed on all entities in a radius around the custom structure. I already looked in the build.bin and anim.build. I do not know where it comes from, so if you have a clue, I'm happy to take it Edited April 7, 2019 by Nhyarlathoteps Link to comment https://forums.kleientertainment.com/forums/topic/104703-weird-shining-effect/ Share on other sites More sharing options...
Hornete Posted April 7, 2019 Share Posted April 7, 2019 Can you send your lua files? Link to comment https://forums.kleientertainment.com/forums/topic/104703-weird-shining-effect/#findComment-1175956 Share on other sites More sharing options...
Nhyarlathoteps Posted April 8, 2019 Author Share Posted April 8, 2019 (edited) require "prefabutil" require "recipes" local assets = { Asset("ANIM", "anim/pig_townhouse1_pink_build.zip"), Asset("ANIM", "anim/pig_house.zip"), } local prefabs = { "pigman", } local function OnLoad(inst, data) inst.AnimState:SetScale(0.75, 0.75, 0.75) inst.AnimState:PlayAnimation("anim") inst.AnimState:Hide("YOTP") inst.AnimState:Hide("SNOW") end local function onbuilt(inst) inst.AnimState:PlayAnimation("place") inst.AnimState:PushAnimation("anim") end local function fn() local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitter() inst.entity:AddMiniMapEntity() MakeObstaclePhysics(inst, 1) inst.entity:AddMiniMapEntity() inst.MiniMapEntity:SetIcon("pighouse.png") inst.AnimState:SetBank("pig_townhouse1_pink_build") inst.AnimState:SetBuild("pig_townhouse1_pink_build") inst.AnimState:SetScale(0.75, 0.75, 0.75) inst.AnimState:Hide("YOTP") inst.AnimState:Hide("SNOW") inst.AnimState:PlayAnimation("anim") inst:AddTag("structure") inst:ListenForEvent("onbuilt", onbuilt) inst.OnLoad = OnLoad return inst end return fn end return Prefab("common/test", fn(), assets, prefabs) This is the prefab file In the modmain.lua I'am just doing PrefabFiles = { "test" } Edited April 8, 2019 by Nhyarlathoteps Link to comment https://forums.kleientertainment.com/forums/topic/104703-weird-shining-effect/#findComment-1176206 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