FANDOM



LoadSharedModel(<rNewObjectType>, <sObjectToShareModelWith>)
Description (information adapted from "ShipTuning.xls")
Indicates the object-model this object will reuse.
For example, the "Hgn_AssaultCorvetteElite" may reuse the model from the "Hgn_AssaultCorvette". In this case, clear the blank argument in the Model Loading section and set the <sObjectToShareModelWith> argument to "Hgn_AssaultCorvette".
Note: only objects of the same type may share models (e.g., ships can only share models with other ships, and asteroids can only share models with other asteroids).
Note: this doesn't seem to work with subsystems.
Note: according to this post, this function needs to appear near the end of the .ship file or else docking paths get screwed up.
Example
LoadSharedModel(NewShipType, "Hgn_AssaultCorvette")
Arguments
<rNewObjectType>: the type of object being modified (ship, resource, etc.).
<sObjectToShareModelWith>: the name of the object to borrow the model from.
Related Pages


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.