Karain
Jack of all trades
Hello, i'd like to create ground and items on empty map in TFS 1.0, After some searching around the forums, i found that my answer should lie in Game.createTile(position).
i did try it but it doesn't seem to work
Here's my piece of code
I do get the "creating a tile" message, the code works, but not as i imagine it should do, so am i using the code wrong or is the function not meant to do what i want in the first place?
Thanks in advance.
Anyone? XD
i did try it but it doesn't seem to work
Here's my piece of code
Code:
local ground = 9043
local newgroundpos = {100,100,7}
if Game.createTile(newgroundpos) then
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "creating a tile")
end
Game.createItem(ground, 1,newgroundpos)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "creating a ground id "..ground)
I do get the "creating a tile" message, the code works, but not as i imagine it should do, so am i using the code wrong or is the function not meant to do what i want in the first place?
Thanks in advance.
Anyone? XD
Last edited by a moderator: