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

Add new lua funcs - tf_setvar(), tf_unsetvar(), tf_sendstr(), tf_sendvar() #85

Merged
merged 3 commits into from
May 26, 2024

Conversation

erikarn
Copy link
Contributor

@erikarn erikarn commented May 26, 2024

  • tf_setvar(name, value) handles setting global variable values
    * tf_unsetvar(name) handles clearing a global variable
    * tf_sendstr(string, world, flags) is the analog to send() - send the string argument to the given world with flags
    * tf_sendvar(var, world, flags) is the analog to send() - send the /variable/ argument (ie, what's in the TF global variable) to the given world with flags.

The reason for tf_sendvar() is to simplify things involving variables w/ attributes in them that may have been captured via triggers and such.

Adrian Chadd and others added 3 commits May 25, 2024 19:38
* tf_setvar(name, value) handles setting global variable values
* tf_unsetvar(name) handles clearing a global variable.
* tf_sendstr(string, world, flags) is the analog to send()
* tf_sendvar(var, world, flags) is the analog to send()
Just straight up re-indent!
@ingwarsw
Copy link
Owner

Thats cool additions..
Thanks a lot..

@ingwarsw ingwarsw merged commit 0924ce2 into ingwarsw:main May 26, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants