Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 29 files). Show all
Unified · Split
| @@ -42,6 +42,11 @@ bool UsersScriptingInterface::getPersonalMuteStatus(const QUuid& nodeID) { · 41 unmodified lines | |||
| 42 | return DependencyManager::get<NodeList>()->isPersonalMutingNode(nodeID); | 42 | return DependencyManager::get<NodeList>()->isPersonalMutingNode(nodeID); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void UsersScriptingInterface::setAvatarGain(const QUuid& nodeID, float gain) { | ||
| 46 | // ask the NodeList to set the gain of the specified avatar | ||
| 47 | DependencyManager::get<NodeList>()->setAvatarGain(nodeID, gain); | ||
| 48 | } | ||
| 49 | |||
| 45 | void UsersScriptingInterface::kick(const QUuid& nodeID) { | 50 | void UsersScriptingInterface::kick(const QUuid& nodeID) { |
| 46 | // ask the NodeList to kick the user with the given session ID | 51 | // ask the NodeList to kick the user with the given session ID |
| 47 | DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID); | 52 | DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID); |