mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 03:15:10 -06:00
updated setInterfaceModel for pitch and yaw optional.
This commit is contained in:
parent
23bb37728d
commit
10b4a6a42a
1 changed files with 9 additions and 4 deletions
|
|
@ -1724,11 +1724,16 @@ fun setInterfaceText(player: Player, string: String, iface: Int, child: Int) {
|
|||
* @param player the player to send the packet to
|
||||
* @param modelId the modelId to send to the child
|
||||
* @param iface the ID of the interface to use
|
||||
* @param child the index of the child to send the string to
|
||||
* @param zoom the zoom of the child to send the string to
|
||||
* @param child the index of the child
|
||||
* @param zoom the zoom of the model
|
||||
* @param pitch optional pitch angle
|
||||
* @param yaw optional yaw angle
|
||||
*/
|
||||
fun setInterfaceModel(player: Player, modelId: Int, iface: Int, child: Int, zoom: Int) {
|
||||
player.packetDispatch.sendModelOnInterface(modelId, iface, child,zoom)
|
||||
fun setInterfaceModel( player: Player, modelId: Int, iface: Int, child: Int, zoom: Int, pitch: Int? = null, yaw: Int? = null) {
|
||||
player.packetDispatch.sendModelOnInterface(modelId, iface, child, zoom)
|
||||
if (pitch != null && yaw != null) {
|
||||
player.packetDispatch.sendAngleOnInterface(iface, child, zoom, pitch, yaw)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue