Functions Documentation
View Function Edit Function
Name objGetShipwreckType
Syntax (objGetShipwreckType shipwreck) -> UNID
Argument List shipwreck: spaceObject of a wrecked ship
Returns UNID: ID of ShipType that wreck was before it was a wreck, or Nil if it's not a shipwreck
Category 1.04, spaceobject
Description Returns the ShipType UNID of the ship that caused a wreck
Example
(typGetDataField 
  (objGetShipwreckType (objGetTarget gPlayership))
  'name
)


Returns the name of the ship that caused the shipwreck that the player is targetting, for example, "Centauri raider"
Comment Particuarly useful with gSource inside the shipwreck dockscreen.