Accepted [MNScript RFC] Device library additions

This suggestion has been accepted for future development.
Status
Not open for further replies.

RedSpeeds

Civil Gamers Expert
Donator
Mar 15, 2022
115
16
91

Summary​

Add new functions to the Device library.
  • Device.DeviceCount() - Returns the amount of devices connected to the hub
  • Device.DeviceCountType(string type) - Returns the amount of devices of specified type connect to the hub
  • Device.Find<TYPE>s() - Returns array of devices of TYPE connected to the device hub

Motivation​

Currently its not possible to dynamically query connected device since they required a unique name even if it didnt require one. This RFC aims to mitigate that by allowing a developer to query all connected devices of a type without the need to change their name to match the exact name set in the code using the toolgun.

Drawbacks​


I do not see drawbacks myself, but if anyone else sees any, I will update this post.
 

Remmy

CC Executive VIP
Donator
Dec 24, 2020
364
1
131
91
Suggestion Accepted


Hi RedSpeeds .

Thanks for taking the time to make a server suggestion.

The Content Team has chosen to accept your suggestion because this is helpful for players who create maxnet scripts.

Your suggestion will now be locked and marked as accepted.​
 
  • Love
Reactions: Tay
Status
Not open for further replies.