10:55 PM 30/12/2019
node-hill 7.3.3 released, bringing you a feature people requested from the very beginning.
You now have the ability to load brk files (from scripts!) into your game.
Example:
Game.on("initialSpawn", () => {
setTimeout(async() => {
let data = await Game.loadBrk("./maps/headquarters2.brk")
Game.setEnvironment(data.environment)
Game.players.forEach((player) => {
player.respawn()
})
}, 10000)
})
Documentation is here: https://meta_data.gitlab.io/node-hill/classes/game.html#loadbrk
(Also added >SLOT parsing support to brk files, but It's relatively useless)
You now have the ability to load brk files (from scripts!) into your game.
Example:
Game.on("initialSpawn", () => {
setTimeout(async() => {
let data = await Game.loadBrk("./maps/headquarters2.brk")
Game.setEnvironment(data.environment)
Game.players.forEach((player) => {
player.respawn()
})
}, 10000)
})
Documentation is here: https://meta_data.gitlab.io/node-hill/classes/game.html#loadbrk
(Also added >SLOT parsing support to brk files, but It's relatively useless)