MyDefinitionBase and Projector RemainingBlockPerType
I know that MyDefinitionBase is restricted and was wondering if there was some magical way to access say the DisplayNameString or something that gives me an idea of the block type when getting the...
View ArticleProjector programming needs love
I've tried to search for this, but have yet to see anything newer than 2015, so I'm asking anew. For the projector, the API documentation does not define how things work, such as the .LoadBlueprint...
View ArticleAdding Needed Projector BP Components to Assembler
First post here. I'll jump right in. All the code in this post in a prototype state, but working. I wanted to make a script to automatically add components to an assembler's queue, based on what blocks...
View ArticleHelp with variable casting - Airlock Pressurize script
I am trying to create one snippet of code that will change which LCDs the ouput is displayed on, based on which Airlock is tasked to Pressurize/Depressurize. Currently, I have this: Code: public void...
View Article[SOLVED] Help with Exception handling - Vent Pressure snippet
So I'm writing a script for my airlocks, and I have a method for converting the % pressure from the vent's DetailedInfo into an int for status checking. Code: public int VentPressure(IMyAirVent vent) {...
View ArticleBeacon and Antenna GPS
I think I may have found a way for drones to extract Vector3D info and create waypoints from Broadcasts (like Beacons and Antennas) Each Beacon and RadioAntenna block creates a MyRadioBroadcaster...
View ArticleUsing Block Position To Find Another Block
Hi is it possible to do the following in Space Engineers using Block Position? Say I have a Merge Block and then I go 2 block positions along the X axis and turn whatever block that is on without...
View ArticleItems volume and mass
Hi, is there any legit way to get item volume and mass. I tried throught the item definition, but seems that MyDefinitionManager is not available anymore. MyDefinitionManagerBase and...
View ArticleProgrammable Block Inter-Grid Communication Guide
Oh yes, that's right. The single most requested feature for PB is now happening. Programmable blocks can now utilize the antenna system to send data to other grids. We said it was never gonna happen,...
View ArticleAccess to System.Numerics?
As the title asks, do we have access to System.Numerics in the PB? And if not, can we get it? And if not, why not? Reason for asking - I'm trying to program the solutions for Cubic and Quartic...
View ArticleHelp me make a plane
Hey there, i'm new to vector math and i want to make a plane on the front of an LCD screen or the front of a door block. Can someone help me please? Thanks in advance
View ArticleAttack Drone AI
Are there any useful Attack Drone AI scripts? I see a bunch on the Workshop, but either old, broken, poorly implemented, or merely a copypasta of Keen 'Enemy AI' scripts. I'm looking to deploy a '...
View ArticleAutomatic sensor field adjustment
I've been trying to figure out a good way to automaticly set the field range of a sensor on a ship to encompasses the entire bounding box of a ship + a fixed distance beyond that. Cases where this...
View ArticleCalculating Rotational Inertia
I've been looking into figuring out a more precise angular acceleration calculation than simply running simulations, starting/stopping a clock via the PB, and taking an average over all the collected...
View Article[SOLVED] How to get Piston Orientation?
Hello, i have trouble to get the right piston orientation to determine if it is a vertical or horizontal extracting piston. First i thought i can use Code: piston.Orientation.Up to get the direction,...
View ArticleIMyInventory's TransferItemTo() documentation
In my recent 'exploits' I came across IMyInventory's TransferItemTo and TransferItemFrom again, and the limitations of working with a mostly (publicly) undocumented API. 1. Can anyone with inside...
View ArticleFind Pitch and Yaw to target
Hello. i want to understand to know pitch and yaw for facing to target by gyro. like how guidance missile work but i don't understand how it work. please explain me how these math algorithm work ......
View Article[SOLVED] Help implementing complex numbers
I've finished coding the equations for quartic and cubic polynomials, but I'm running into an issue during execution of the code since the equation calculates a complex value. I have a class that I...
View ArticleHelp, is it possible to check if a laser anttena has broken its laser...
So like the title explains is it possible too check if a laser connection is broken. For example if the active laser connection is broken trigger an alarm. As of this moment iv'e only been able to...
View ArticleHow to negate gravity with a missile (forward thrust only)?
I'm trying to miniaturize my intercept script from a drone into a missile. In order to drop excess weight to increase acceleration and decrease time to target, I want to drop all but forward-propelling...
View Article