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

Bind the playervoice to a vector3 #95

Open
Kattrigerkatta opened this issue Oct 23, 2021 · 0 comments
Open

Bind the playervoice to a vector3 #95

Kattrigerkatta opened this issue Oct 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Kattrigerkatta
Copy link

Kattrigerkatta commented Oct 23, 2021

Suggestions:
Functions:

BindVoiceToCoords(playerId, vector3)
This functions binds the playervoice to a vector3

It would also be good if it were possible to set the playervoice to different coordinates, so that, for example, in the case of a loudspeaker announcement system, the announcement can be made at different locations.

BindVoiceToEntity(playerId, networkId, offcoords)
This functions binds the playervoice to an entity

networkId = NetworkGetNetworkIdFromEntity(entity),
offcoords = GetOffsetFromEntityInWorldCoords | coords relative to the entity (is actualy a vector3)

offsetx = [ - = left + = right ]
offsety = [ - = behind + = front ]
offsetz = [ - = under + = upper ]
example: -1 or +1 (every integer)

ResetVoiceBind(playerId)
This functions sets the playervoice coords (I think it's the playerped)

Usage:
This could be used to make a loudspeaker announcement system for e.g. a prison or other buildings. It could also be used to make an announcement for buses, for example, when there is something new. Or you could connect it to a radio and play back information.

@BlackFlash5 BlackFlash5 added the enhancement New feature or request label Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants