How do I create a wreak?
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)
- digdug
- 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:
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 ?)
the station to summon needs to have a particular parameter in the image tag:
Code: Select all
<Image shipwreckID="&scMikeno;"/>
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 ?)
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...
This probably means that vectors are lists of two numbers. I wonder if (item) could be used to get angle and magnitude...