Shitobu
displays under your name in your posts.
- Joined
- Apr 24, 2016
- Messages
- 25
- Reaction score
- 1
I'm trying to get a summon userdata that I created by:
This code summons a monster named "Test".
Now, on another code, I'm trying to check if there is any summon summoned.
I tried:
But somehow getSummons() return an userdata even when there is no summon summoned.
I think I could do an onThink checking the creature name, if it's Test, I find it's master and Set a storage on master.
But I need the summon userdata anyway to manipulate the summon on others codes. D:
Any ideas?
@if there was any way to get the summons table and by that I could play with each one would be great.. but I guess that I can't do that by that way?
Code:
local monster = Game.createMonster("Test", player:getPosition())
monster:setMaster(player)
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
Now, on another code, I'm trying to check if there is any summon summoned.
I tried:
Code:
if player:getSummons() ~= nil then
-- Summoned
end
I think I could do an onThink checking the creature name, if it's Test, I find it's master and Set a storage on master.
But I need the summon userdata anyway to manipulate the summon on others codes. D:
Any ideas?
@if there was any way to get the summons table and by that I could play with each one would be great.. but I guess that I can't do that by that way?
Last edited: