Puppet Effects

Discussion in 'Mod Support' started by wondible, August 11, 2015.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Is it a known issue that WorldView.unPuppet doesn't reap attached effects? I was testing with feature_burn, so it may be a similar issue to the unending fires when a tree gets destroyed before it burns down.

    p.s, note to modders: scale applies to effects.

    Screen Shot 2015-08-10 at 22.19.12 .png
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Workaround. Requires keeping (or fetching) a complete puppet spec. Removing the fx_offset property didn't work, so maybe you could get away with {id: n, fx_offsets: []}

    Code:
      var removePuppet = function(view, puppet) {
        puppet.fx_offsets = []
        view.puppet(puppet).then(function() {
          view.unPuppet(puppet.id)
        })
      }
    
    dom314 likes this.

Share This Page