Game.createMonster is sending CONST_ME_TELEPORT magic effect to monster position when it's should be specified by the script instead #3905
Labels
decisions
Debatable/disputable
good first issue
Issues that are easy to get started with
priority: low
Issues with this label won’t have the immediate focus
Before creating an issue, please ensure:
support matter (use https://otland.net/forums/support.16/ for support)
Steps to reproduce (include any configuration/script required to reproduce)
Expected behaviour
Command Game.createMonster should only create the monster on map without any effect attached to it. Assuming a magic effect together hurts when it's not the case. If there's an occasion where you want to send a magic effect together with creating the monster, script should also include the following command sendMagicEffect(CONST_ME_TELEPORT) to monster's position, for example.
I am stating all of this because there's monsters on real server that are placed on map with no effect, or with other effects instead of the teleportation one.
Actual behaviour
Watch as the command automatically sends a magic effect CONST_ME_TELEPORT to monster position together as creating the monster.
Environment
Reproduction environment
Example script:
local pos = Position(500, 500, 7)
local monster = Game.createMonster("Rat", pos)
if monster then
monster:remove()
end
The text was updated successfully, but these errors were encountered: