bizao030188
Member
- Joined
- Jun 4, 2012
- Messages
- 50
- Solutions
- 2
- Reaction score
- 7
Hey there!
I am working in a new system in which I want to create summons for players and then at some point I want to remove these summons.
To create summons I am using
The point is that if I remove the summon using summon:remove() command the surrounding monsters keep walking (I mean, the AI still working - so increasing CPU usage).
On the other hand, if I remove the summon using summon:addHealth(-summon:getHealth()) it does not happen but there is a delay and an animation on this process which I would like to avoid.
Any idea on how to make summon:remove() work as I want?
Thanks in advance.
I am working in a new system in which I want to create summons for players and then at some point I want to remove these summons.
To create summons I am using
Lua:
local monster = Game.createMonster(name, playerPos)
if monster ~= nil then
monster:setMaster(player)
end
The point is that if I remove the summon using summon:remove() command the surrounding monsters keep walking (I mean, the AI still working - so increasing CPU usage).
On the other hand, if I remove the summon using summon:addHealth(-summon:getHealth()) it does not happen but there is a delay and an animation on this process which I would like to avoid.
Any idea on how to make summon:remove() work as I want?
Thanks in advance.