Felipe93
Ghost Member
Hello Comunnity
I'm in the seek of help im stuck on this. The thing is that after traveling via boat it should appear an " teleport effect" on the player thing that is not happening.
(it's not displaying effect at all)
im getting this error in console
modules.lua:227: attempt to call method 'doSendMagicEffect' (a nil value)
which is related to something like this
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(destination)
destination:sendMagicEffect(CONST_ME_TELEPORT)
i tried changing sendMagicEffect(CONST_ME_TELEPORT) for this sendMagicEffect(newpos, 11) but its not working either
sorry if i didn't use the code attachment app but it ain't working
I'm in the seek of help im stuck on this. The thing is that after traveling via boat it should appear an " teleport effect" on the player thing that is not happening.
(it's not displaying effect at all)
im getting this error in console
modules.lua:227: attempt to call method 'doSendMagicEffect' (a nil value)
which is related to something like this
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
player:teleportTo(destination)
destination:sendMagicEffect(CONST_ME_TELEPORT)
i tried changing sendMagicEffect(CONST_ME_TELEPORT) for this sendMagicEffect(newpos, 11) but its not working either
sorry if i didn't use the code attachment app but it ain't working
Last edited: