Advertisement
sad415

012984

Oct 23rd, 2020
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. //x2,0,roblox\6da\6hood,69,,6:[10]%,,y#10###,1.1.1
  2. // Above is your LOAD LINE. Copy it into Visual Script Builder to load your script.
  3. // dco.pe/vsb
  4.  
  5. void Main(string argument)
  6. {
  7.   // block declarations
  8.   string ERR_TXT = "";
  9.   List<IMyTerminalBlock> l0 = new List<IMyTerminalBlock>();
  10.   IMyMotorAdvancedStator v0 = null;
  11.   GridTerminalSystem.GetBlocksOfType<IMyMotorAdvancedStator>(l0);
  12.   if(l0.Count == 0) {
  13.     ERR_TXT += "no Advanced Rotor blocks found\n";
  14.   }
  15.   else {
  16.     for(int i = 0; i < l0.Count; i++) {
  17.       if(l0[i].CustomName == "roblox da hood") {
  18.         v0 = (IMyMotorAdvancedStator)l0[i];
  19.         break;
  20.       }
  21.     }
  22.     if(v0 == null) {
  23.       ERR_TXT += "no Advanced Rotor block named roblox da hood found\n";
  24.     }
  25.   }
  26.  
  27.   // display errors
  28.   if(ERR_TXT != "") {
  29.     Echo("Script Errors:\n"+ERR_TXT+"(make sure block ownership is set correctly)");
  30.   }
  31.   else {Echo("");}
  32.  
  33.   // logic
  34.   if(true) {
  35.   }
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement