Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //x2,0,roblox\6da\6hood,69,,6:[10]%,,y#10###,1.1.1
- // Above is your LOAD LINE. Copy it into Visual Script Builder to load your script.
- // dco.pe/vsb
- void Main(string argument)
- {
- // block declarations
- string ERR_TXT = "";
- List<IMyTerminalBlock> l0 = new List<IMyTerminalBlock>();
- IMyMotorAdvancedStator v0 = null;
- GridTerminalSystem.GetBlocksOfType<IMyMotorAdvancedStator>(l0);
- if(l0.Count == 0) {
- ERR_TXT += "no Advanced Rotor blocks found\n";
- }
- else {
- for(int i = 0; i < l0.Count; i++) {
- if(l0[i].CustomName == "roblox da hood") {
- v0 = (IMyMotorAdvancedStator)l0[i];
- break;
- }
- }
- if(v0 == null) {
- ERR_TXT += "no Advanced Rotor block named roblox da hood found\n";
- }
- }
- // display errors
- if(ERR_TXT != "") {
- Echo("Script Errors:\n"+ERR_TXT+"(make sure block ownership is set correctly)");
- }
- else {Echo("");}
- // logic
- if(true) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement