• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

add ActionID to tile

Shitobu

displays under your name in your posts.
Joined
Apr 24, 2016
Messages
25
Reaction score
1
I've been trying to add an actionID on a player's tile.
I've tried this way:

Code:
local tile = player:getTile()
    tile:setActionId(111)
But it returns nil.
I guess my problem is on getting the tile itself. What is the problem?
Thanks!
 
Code:
local tile = Tile(player:getPosition()):getGround()
if ground then
    ground:setAttribute(ITEM_ATTRIBUTE_ACTIONID, 111)
end
 
Last edited:
If you don't mind, can you explain me how this line works?
Code:
local tile = Tile(player:getPosition()):getGround()
It's okay if you can't.
 
Back
Top