Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Whip's Warhead Detonator v1 /// - revision: 7/25/16
- void Main()
- {
- var warheads = new List<IMyTerminalBlock>();
- GridTerminalSystem.GetBlocksOfType<IMyWarhead>(warheads);
- foreach (IMyWarhead thisWarhead in warheads)
- {
- thisWarhead.SetValue("Safety", true);
- thisWarhead.ApplyAction("Detonate");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement