We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a11b1a commit 61ef9cfCopy full SHA for 61ef9cf
docs/example.js
@@ -0,0 +1,7 @@
1
+function runCode() {
2
+ if (document.pointerLockElement != null){//if pointerlock is enabled (the player is in game)
3
+ ModAPI.displayToChat({msg: "hello"})
4
+ ModAPI.displayToChat({msg: "welcome to eaglerforge!"})
5
+ }
6
+}
7
+var intervalId = setInterval(runCode, 50);//run the code in a loop
0 commit comments