![]() ![]() Again, the majority of scripts won't need such a feature. The absolute majority of scripts will either not use arguments at all, or just use a single command. If less than 20% of your users are going to use a specific feature, don't bother. These are the reasons I didn't do it that way: People have been asking about multiple arguments. (the enter in argument text box feature was nixed, for now - will be readded in the future) ![]() This makes it even easier to make console terminal type scripts. This pull request also finishes off this feature by letting you run the programmable block by pressing enter in the Argument text box, and adding a check box to clear the Argument text box once the programmable block has run. These issues have been fixed on GitHub and are awaiting review. The timer block is completely resetting the argument, so it is never passed to the programmable block.Some synchronization issues have been reported in multiplayer when it comes to transferring the argument.Note: A programmable block cannot run itself, or by proxy cause itself to be run using this method. This method will return true if the program was run, or false if the block is off or disabled or for any other (known) reason can't run the program. Now you can assign the same programmable block to two buttons, one with the argument "OpenHangarDoor" and the other with the argument "CloseHangarDoor", and you have two different actions run from a single programmable block.Ĭalling another programmable block with an argumentĪnother programmable block can be called directly via its bool TryRun(string argument) method. ![]() ![]() Do whatever is needed to close the hangar door Do whatever is needed to open the hangar door ![]()
0 Comments
Leave a Reply. |