SCRIPTING MAKES NO SENSE

t10
Joined 09/03/2020
Posts 20,623
02:47 AM 14/06/2023
I NEED HELP

https://www.brick-hill.com/forum/thread/2646457/

WHERE DO I ADD THE STUPID ID OF THE TOOL


[NNN] [Deleted1050231]
Joined 01/01/2023
Posts 36,315
02:50 AM 14/06/2023
what are you scripting?


[l1l] ROOMZ
Joined 03/05/2020
Posts 3,717
03:01 AM 14/06/2023
create the instance of the tool (for example call it "this") so put let this = new tool("insertname")
then put "this.model = (the id of the tool you want)

i literally know zero about javascript so this could be wrong but that means the bh node hill documents are wrong since thats where im getting all this info from


[THC] setz
Joined 28/04/2023
Posts 7,298
04:45 AM 14/06/2023
nice thread id snipe


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
03:43 PM 15/06/2023
Quote from ROOMZ , 03:01 AM 14/06/2023
create the instance of the tool (for example call it "this") so put let this = new tool("insertname")
then put "this.model = (the id of the tool you want)

i literally know zero about javascript so this could be wrong but that means the bh node hill documents are wrong since thats where im getting all this info from
i wouldnt recommend using "this" because its used by js, you can use "tool", also Tool is case sensitive, so

let tool = new Tool("cool tool")
tool.model = 20

considering you dont know anything about js this is good


[RWB] MixaMega
Joined 23/12/2019
Posts 435
Moderator
03:44 PM 15/06/2023
but this isnt very js specific, if brick hill used any other language the code would look pretty much the same

1