#I'm tring to set statuseffects to the owner of a staff after he shoot

5 messages · Page 1 of 1 (latest)

craggy delta
#

I try to catch event on a custom weapon.lua file for my staff, detect the stance of owner with the staff to active the effect but it's not working:

function update(dt, fireMode, shiftHeld) self.weapon:update(dt, fireMode, shiftHeld) sb.logWarn(tostring(animator.hasSound("charge_spell1"))) f(self.stance.armRotation == -45)then status.addEphemeralEffect("glow",5) end end

hybrid flint
#

status.addEphemeralEffect({effect="glow",duration=5})

craggy delta
#

This is especially the part of the IF, the stance returns null. I don't know what other staff event I can retrieve to activate an effect

gloomy socket
#

iirc self.stance is null until you set its stance via self.weapon:setStance()