[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-devel] Questions about enigma.GetPos()
From: |
Markus Laire |
Subject: |
[Enigma-devel] Questions about enigma.GetPos() |
Date: |
Sat, 28 Apr 2007 10:20:41 +0300 |
Hello,
If I use enigma.GetPos() on an item which is currently in inventory or
in some bag, it seems to return the position where the item has last
been on ground.
If this behaviour likely to remain the same?
Also, I just noticed that using first
dynamite = set_item("it-dynamite", orig_x, orig_y)
and then later
local x, y = enigma.GetPos(dynamite)
will cause segmentation fault if the dynamite has been exploded.
Is there a way to check whether the dynamite is still in game without
giving it a unique name and using "if enigma.GetNamedObject() == nil"
--
Markus Laire
- [Enigma-devel] Questions about enigma.GetPos(),
Markus Laire <=