- Version 1.0.1
- 223 downloads
Prevents players of the same team shooting eachother.
Installing
Put teams into your server's client_packages directory, then add require('teams'); to client_packages/index.js.
Using
It's pretty simple, just set currentTeam shared variable of a player like this:
// both strings and numbers should work
playerEntity.data.currentTeam = whatever;
playerEntity.setVariable("currentTeam", whatever);
And set currentTeam to null if you want to reset someone's team