Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- /// Timer activaton script - 11/7/2015 ///
- Input the timer's name into the argument and hit run
- - Whiplash141
- */
- void Main( string timerName )
- {
- List<IMyTerminalBlock> timersToTrigger = new List<IMyTerminalBlock>();
- GridTerminalSystem.SearchBlocksOfName( timerName, timersToTrigger );
- for( int i = 0; i < timersToTrigger.Count; i++ )
- {
- var thisTimer = timersToTrigger[i] as IMyTimerBlock;
- thisTimer.ApplyAction("TriggerNow");
- Echo("Timer " + timerName + " triggered");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment