Home › Forums › Wayward › What changed? › Reply To: What changed?
March 28, 2014 at 12:19 am
#4666
Orillian
Member
/**
* Change the current tile
* @param newTile object (object variables: type (required), strength, mindur, maxdur)
* @param changeX int
* @param changeY int
* @param stackTiles boolean <---if you set this to false or leave it off it will overwrite the current tile, true stacks.
*/
function changeTile(newTile, changeX, changeY, stackTiles)
examples:
changeTile({type: 'cobblestone'}, player.x, player.y, true);
changeTile({type: 'cobblestone', mindur: 8, maxdur: 12}, player.x, player.y, false);
Hope that helps.
O.
- This reply was modified 10 years, 6 months ago by Orillian.