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 a GetEntityKeyvalue function to VScript #1266

Open
Rip-Rip-Rip opened this issue Dec 5, 2024 · 0 comments
Open

Add a GetEntityKeyvalue function to VScript #1266

Rip-Rip-Rip opened this issue Dec 5, 2024 · 0 comments
Labels
Type: Enhancement This is something that improves upon an already existing thing. What: Scripting AngelScript or VScript related issues

Comments

@Rip-Rip-Rip
Copy link
Member

What would this enhancement be for?

Other

Describe your enhancement suggestion in more detail

As far as I’m aware, there currently isn’t a way to obtain the stored value of an entity kv through VScript.

Adding this would be really useful, as it would not only allow you to add arbitrary kvs to entities for later reference in the script, but would also allow to you obtain a specific value which currently can’t be obtained (e.g. a set mass of a prop_physics).

I imagine the syntax to be smth like this:
<entityhandle>.GetEntityKeyvalue(keyvalue)

In cases where the given kv doesn’t exist, it should simply return null.

If you need me to expand on this idea anymore then let me know! :D

@Rip-Rip-Rip Rip-Rip-Rip added the Type: Enhancement This is something that improves upon an already existing thing. label Dec 5, 2024
@JJL772 JJL772 added the What: Scripting AngelScript or VScript related issues label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement This is something that improves upon an already existing thing. What: Scripting AngelScript or VScript related issues
Projects
None yet
Development

No branches or pull requests

2 participants