hello dear friends,
how can i save the player position in a storage?
and after this, get this position back in another script...
ps:
i need this to work in a "waypoint back" action script
i'm using TFS 1.3, to 10.98 version
I've tried these lines of code:
but I had this error:
how can i save the player position in a storage?
and after this, get this position back in another script...
ps:
i need this to work in a "waypoint back" action script
i'm using TFS 1.3, to 10.98 version
I've tried these lines of code:
in first action item:Lua:local storage = 15636 --storage for example setPlayerStorageValue(cid, storage, player:getPosition()) -- to save player position
in second action item:Lua:player:teleportTo(cid, getPlayerStorageValue(cid, 15636)) -- to get position back
but I had this error:
Lua Script Error: [Action Interface]
data/actions/scripts/other/summon.luanUse
attempt to index a nil value
stack traceback:
[C]: at 0x7ff6a2e092d0
[C]: in function 'teleportTo'
data/actions/scripts/other/homeward:35: in function <data/actions/scripts/other/homeward.lua:14>