There are two functions I'd like to see added to Transcendence for placing objects in the game.
First, a function that can tell the size of an object, perhaps by having access to the dimensions of the object's graphic image. This would allow a mod to find out a reasonable distance to be placed from the object.
Second, and in conjunction with the first function, would be a function to find a region of space large enough to accommodate the item you want to place, which has no other objects in it.
From the first, it would be easy to make a function that could create a vector for the location of a new item from the center of the item it's being placed near.
Anyway, that's probably enough for one post. Comments?
PK
Function requests for placing objects.
- Arisaya
- Fleet Admiral
- Posts: 5535
- Joined: Tue Feb 05, 2008 1:10 am
- Location: At the VSS Shipyards in the frontier, designing new ships.
Ah, yes, #2 was that 'sysFindEmptyRegion' or whatever it would be named...
I think that one that just looks for actually empty (regardless of graphics; I mean as in in terms of the game's engine seeing it) space would be a bit more on the useful side for most fancy scripting sort of things, but perhaps an argument to check for graphics or objects could be placed...
I think that one that just looks for actually empty (regardless of graphics; I mean as in in terms of the game's engine seeing it) space would be a bit more on the useful side for most fancy scripting sort of things, but perhaps an argument to check for graphics or objects could be placed...
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
- Arisaya
- Fleet Admiral
- Posts: 5535
- Joined: Tue Feb 05, 2008 1:10 am
- Location: At the VSS Shipyards in the frontier, designing new ships.
It would work fine either as a standard function to return coordinates/regions, or as a parameter.... probably just more versatile to be standalone.
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
<New tutorials, modding resources, and official extension stuff coming to this space soon!>