[SUGGESTION] Phone/Radio Speaker #179
Replies: 6 comments 1 reply
-
|
It likely won't be added unless someone else takes the time to do so in a way that doesn't affect script performance & readability. Mainly because the logic behind it would be semi-complex and not doable with the current state of state bags, but will be possible in the future, as d-bub said there will be ways to search for certain states on entities/objects/players |
Beta Was this translation helpful? Give feedback.
-
|
So is the only thing that is stopping this from being a thing the ability to search states? If so there is actually a pretty simple way to make your own way to search for them. I'd be happy to help with that if that is something needed. |
Beta Was this translation helpful? Give feedback.
-
We could search our own way but it wouldn't be very performant as we can't natively search state bags, and searching through a lot of player state bags would likely lead to issues because of constant deserialization. |
Beta Was this translation helpful? Give feedback.
-
Well the way I have it being done has no performance issues or any issues at all and works 100% of the time. |
Beta Was this translation helpful? Give feedback.
-
|
If you want the share the code feel free make a pull request and make it have a convar to enable it (off by default). |
Beta Was this translation helpful? Give feedback.
-
I don't have any code for the speaker only for a way to search a state. That being the ability to have unique tags(IE: "isDead", "isCuffed") to be set to true or false and checking if those are true or false. Which this isn't really a thing that could be turned on or off it's just a utility. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ability to enable/disable(export?) a speaker on the phone/radio. This would allow user around to be able to hear the phone call or someone talking on the radio.
Beta Was this translation helpful? Give feedback.
All reactions