• Content count

  • Joined

  • Last visited

Community Reputation

4 Neutral

1 Follower

About Weexer

  • Rank
    Junior Member

Recent Profile Visitors

328 profile views
  1. Wow that's actually problem that i got 3 hours ago when i tested my mod. Could You please write more about "how to recognize which one is server-sided code and client-sided code?"
  2. I misread your username as "Weezer' and now I'm thinking of that indi band.

  3. In folder scripts -> sheltertw.lua In lines(30-33): local function onbuilt(inst) inst.AnimState:PlayAnimation("place") inst.AnimState:PushAnimation("idle", false) end You set here animation for placement as "idle" In the same lua file in lines (118-120): inst.AnimState:SetBank("sheltertw") inst.AnimState:SetBuild("sheltertw") inst.AnimState:PlayAnimation("sheltertw", true) I think there is a problem it should look more like: inst.AnimState:SetBank("sheltertw") inst.AnimState:SetBuild("sheltertw") inst.AnimState:PlayAnimation("idle", true) Be sure that your spriter file *.scml have same value's as higher Hope this will solve Your problem
  4. Need help fixing

    I found that you're missing " , " in the end of line: ATTACKER = "That Kakyoin looks shifty..." Hope, that will solve Your problem
  5. @Lumina looks like customcommands.lua doesn't work anymore, it's not working for me aswell. Im sure Your function will work if You paste it there: ...\Steam\steamapps\common\Don't Starve Together\data\scripts\consolecommands.lua Be aware that file can be overwritten by updates. Here are custom commands that i use for testing ingame: function c_speed() c_give("cane") c_give("yellowamulet") c_give("minerhat") c_give("walrushat") end function c_fight() c_give("armorwood") c_give("hambat") c_give("wathgrithrhat") end function c_stats() ThePlayer.components.sanity:SetPercent(1) ThePlayer.components.health:SetPercent(1) ThePlayer.components.hunger:SetPercent(1) end function c_stats2() AllPlayers[2].components.sanity:SetPercent(1) AllPlayers[2].components.health:SetPercent(1) AllPlayers[2].components.hunger:SetPercent(1) end function c_creative() c_listallplayers() c_supergodmode() ThePlayer.components.builder:GiveAllRecipes() end function c_creative2() c_supergodmode(AllPlayers[2]) AllPlayers[2].components.builder:GiveAllRecipes() end Hope i helped a little
  6. local x, y, z = target.Transform:GetWorldPosition() local spell = SpawnPrefab("lightning") spell.Transform:SetPosition(x, y, z) spell:DoTaskInTime(4, spell.KillFX) local spell2 = SpawnPrefab("deer_ice_circle") spell2.Transform:SetPosition(x, y, z) spell2:DoTaskInTime(4, spell2.KillFX) local spell3 = SpawnPrefab("deer_ice_burst") spell3.Transform:SetPosition(x, y, z) spell3:DoTaskInTime(4, spell3.KillFX) local spell4 = SpawnPrefab("deer_ice_flakes") spell4.Transform:SetPosition(x, y, z) spell4:DoTaskInTime(4, spell4.KillFX) Got it after few tests... Works perfectly
  7. Hello , I have problem with killing fx of spawned prefabs, here's piece of my code. Could anyone help me by giving me some tips how to do "Kill animation" working? - i don't ask for straight code I want to learn it. Maybe You know about some lua files where i can look into? (PS. everything works without last line - DoTaskinTime) local x, y, z = target.Transform:GetWorldPosition() SpawnPrefab("lightning").Transform:SetPosition(x, y, z) SpawnPrefab("deer_ice_circle").Transform:SetPosition(x, y, z) SpawnPrefab("deer_ice_burst").Transform:SetPosition(x, y, z) SpawnPrefab("deer_ice_flakes").Transform:SetPosition(x, y, z) inst:DoTaskInTime(4, SpawnPrefab.KillFX) -- Here is the problem! <-- Is there any other ways to do that?