Advertisement
Whiplash141

Whip's Warhead Detonator

Aug 25th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. /// Whip's Warhead Detonator v1 /// - revision: 7/25/16
  2.  
  3. void Main()
  4. {
  5.     var warheads = new List<IMyTerminalBlock>();
  6.     GridTerminalSystem.GetBlocksOfType<IMyWarhead>(warheads);
  7.     foreach (IMyWarhead thisWarhead in warheads)
  8.     {
  9.         thisWarhead.SetValue("Safety", true);
  10.         thisWarhead.ApplyAction("Detonate");
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement