![]() ![]() The only problem is that they do not stop after 20 seconds. The code runs, the timer begins counting, and the thrusters flare up. ///////// Allow the timer block to operate for 20 seconds. ITerminalAction stopTimer = timer.GetActionWithName("Stop") ////////// Initialize the timer block and set up actions I've almost got it, but i'm just not quite there. Thanks again for all of your help! However, once again, I'm sort of at a loss, here. How do I make these thrusters fire only while the timer is counting? Am I wrong to assume that the bool is a usable variable in this context? I'm trying to use it in that while-loop that I have in my code, and it's giving me an error. I assume that the bool IsCountingDown under the fields there is something that I can use like a boolean variable. They are quite similar, but there are some subtle differences. I'm more used to java than I am used to C#. GetActionWithName("DecreaseOverride").Apply(mainThrusters ) supplements become necessary in the course of time, a supplement will be. //////// Decrease the thrust after the timer is done counting.įor (int i = 0 i < mainThrusters.Count i++) and VDE (Association of German Electrical Engineers) standards are referred to. GetActionWithName("IncreaseOverride").Apply(mainThrusters ) ![]() ///////// Increase the thrust of the thrusters while the timer is counting down.įor(int i = 0 i < mainThrusters.Count i++) ITerminalAction startTimer = timer.GetActionWithName("Start") Var timer = GridTerminalSystem.GetBlockWithName("Timer Block") List mainThrusters = group.BlocksVar list = GridTerminalSystem.BlockGroups ////////// Put the main thrusters into a list by grouping. Here is my code (the part that i'm having trouble with is bolded and underlined): Scripts only run on PC and Dedicated Servers, not on xbox. In this case, the thrusters will use the DecreaseOverride method after the timer has finished counting. Programmable Block Space Engineers Wiki Fandom 1 week ago Before you can use Programmable Blocks, check the following requirements: 1. Program() constructor is ran only seldom - when the program block is recompiled or loaded from save game. Mod is probably from another mod - I never encountered it. Programmable Block 1.8 Was man sich angewhnen sollte: Fehler vorhersehen Programmable Block, fr Nichtprogrammierer erklrt Man kann natrlich Space Engineers (SE) vllig ohne Programmierkenntnisse spielen. Now, I'm trying to sort of link the action of overriding the accelleration with a timer block. Basically updateSource Terminal is from 'run' button in terminal, Trigger is by button, timer, air vent etc, script is from other script. I think once I get this figured out, I can maybe sort of figure out the rest. Is there perhaps a way to make a sepearte list for just those two thrusters? Or perhaps a way to assign those two thrusters to a specific index within the list? ITerminalAction increaseThrust = mainThrusters.GetActionWithName("IncreaseOverride") GridTerminalSystem.GetBlocksOfType(mainThrusters) įor(int i = 0 i < increaseCount i++) List mainThrusters = new List()I got the thrust to override for a single thruster at the index of the list of thrusters, which is cool, but not exactly what I was looking for. Would anyone mind helping me out with this? New behaviors have been added to drone AI which can be accessed via the visual scripting. ![]() Also, some block icons and all component icons have been updated. My programming experience is extremely limited. Update 01.171 DEV - Programmable Block Inter-Grid Communication This weekâs update contains more improvements and tweaks for block models and changes to the air-tightness of some blocks. These two thrusters are the forward thrusters of my ship. & Diehl, M.I'm trying to increase the override for 2 of the 8 of my thrusters on my ship. AuthorĪlbanesi, C., Bossi, M., Magni, L., Paderno, J., Pretolani, F., Kuehl, P. QuickSearch: Number of matching entries: 377/377. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |