Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays authored Feb 17, 2024
1 parent 3a11b1a commit 61ef9cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function runCode() {
if (document.pointerLockElement != null){//if pointerlock is enabled (the player is in game)
ModAPI.displayToChat({msg: "hello"})
ModAPI.displayToChat({msg: "welcome to eaglerforge!"})
}
}
var intervalId = setInterval(runCode, 50);//run the code in a loop

0 comments on commit 61ef9cf

Please sign in to comment.