How do I create a wreak?

Freeform discussion about anything related to modding Transcendence.
Post Reply
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

I am trying to create a wreak of a modded ship (like the mikeno wreak in debug) but find that I only have functions for creating ships. Is there a nice way to do this (obviously, I could sysCreateWeaponsFire and destroy that ship, but that wouldn't be very elegant)
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

wrecks are stations, so you can create them from code using station functions.
the station to summon needs to have a particular parameter in the image tag:

Code: Select all

<Image shipwreckID="&scMikeno;"/>
this example is from the mikeno debug depot

another examples you can check are the encounters like the xenophobes encounter where the ships are summoned from a wreck of a station. And the wreck of a station seems to be created by generating a station with 0 hitpoints. (not sure, somebody can confirm that ?)
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

Thanks digdug!

A quick note though (sysCreateStation) requires you to use (objGetPos gSource) and just gSource will not work.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

F50, noted, thanks. :D
That's interesting, so sysCreateStation create stations from a vector, while sysCreateShip accepts a vector or any spaceObject as a source position.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

yeah, it does seem kind of odd. The error message is also confusing "expected list" and then when you just put (list) then it says "expected integer".

This probably means that vectors are lists of two numbers. I wonder if (item) could be used to get angle and magnitude...
Post Reply