Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More useful commands to document for testing tips section #89

Open
8 tasks
GeckoEidechse opened this issue Jul 15, 2022 · 0 comments
Open
8 tasks

More useful commands to document for testing tips section #89

GeckoEidechse opened this issue Jul 15, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@GeckoEidechse
Copy link
Member

Copied from messages on Discord:

  • for multiple statements in a script command use the compilestring("")() function
  • reload
  • uiscript_reset basically reload but for the ui vm useful for making UI stuff
  • the last tip I can think of is make global test functions to call with script, script_client or script_ui
  • script StimPlayer(GetPlayerArray()[0], -1.0) for infinite stim without hud effects
  • script GetPlayerArray()[0].kv.airAcceleration = 9000 9k air accel
  • script_ui seterrorhandler(void function() {}) deletes the ui error thingy (useful for fucked up persistence when you don't want to reset it)
  • DispatchSpawn( CreateAtlas( team, position, angles ) ) creates a weaponless titan, team = 1 will make it hostile
@GeckoEidechse GeckoEidechse added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant