Skip to content

Commit

Permalink
add doc block for getCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Mar 21, 2023
1 parent 418b2fd commit 2fbcdb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rustplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ class RustPlus extends EventEmitter {
}, callback);
}

/**
* Get a camera instance for controlling CCTV Cameras, PTZ Cameras and Auto Turrets
* @param identifier Camera Identifier, such as DOME1, OILRIG1L1, (or a custom camera id)
* @returns {Camera}
*/
getCamera(identifier) {
return new Camera(this, identifier);
}
Expand Down

0 comments on commit 2fbcdb7

Please sign in to comment.