04:42 PM 04/02/2023
idk how to script in bh
04:59 AM 05/02/2023
Hi there,
I'm not entirely sure what you mean by a "sign message" but I'll try to be as helpful as I can.
First of all, we are going to use the playerJoin listener. The code inside of this listener will execute when, like the name says, a player join. The node-hill documentation has an example so I'll let you see that here:
https://brickhill.gitlab.io/open-source/node-hill/classes/Game.html#playerJoin
(1/2)
I'm not entirely sure what you mean by a "sign message" but I'll try to be as helpful as I can.
First of all, we are going to use the playerJoin listener. The code inside of this listener will execute when, like the name says, a player join. The node-hill documentation has an example so I'll let you see that here:
https://brickhill.gitlab.io/open-source/node-hill/classes/Game.html#playerJoin
(1/2)
04:59 AM 05/02/2023
Quote from dargy , 04:59 AM 05/02/2023Now, I'm assuming by "sign message" you mean a message that is broadcasted to all players. You can use the Game.messageAll function to send a message to all the players in the lobby.
Hi there,
I'm not entirely sure what you mean by a "sign message" but I'll try to be as helpful as I can.
First of all, we are going to use the playerJoin listener. The code inside of this listener will execute when, like the name says, a player join. The node-hill documentation has an example so I'll let you see that here:
https://brickhill.gitlab.io/open-source/node-hill/classes/Game.html#playerJoin
(1/2)
An example for that would be: Game.messageAll("Hello players, this is a broadcast");
You would place this inside the playerJoin listener to broadcast the message when the player joins the server.
If you need any more help, I'd recommend joining the Brick Hill discord or taking a peak at the node-hill documentation
Docs: https://brickhill.gitlab.io/open-source/node-hill/
Hope this helps, good luck on your scripting journey.
(2/2)