Function; SpawnSalvageOnDeath - HWRM/KarosGraveyard GitHub Wiki
SpawnSalvageOnDeath(...see Arguments...)
Spawns debris when a ship is destroyed.
SpawnSalvageOnDeath(NewShipType,"Slv_Chunk_Lrg03",1, 0.40,0,0,0, 0,0,0,50,0,0,0,200,0,0,0,50,0,0,0,50)
Note: there are (sometimes rather severe) radomizations applied to all arguments - which is a good thing, but makes understanding and mapping them that much harder -TheBlind
-
<rShipTable>: Reference to the ship; this should be
NewShipType
. -
<sDebrisName>: Name of a debris object from the
Data/Resource/Salvage
folder. - <iChunks>: Number of debris objects to spawn.
- <fValue>: The percent of the total ship RU value. the total value governed by build cost and multiplier in tuning.lua. If all chunks don't add up to 100% the engine will re-assign percentages evenly.
- <fSpawnX>:
- <fSpawnY>:
- <fSpawnZ>:
- <fSpawnRandomX>:
- <fSpawnRandomY>:
- <fSpawnRandomZ>:
- <fSpawnRandom>:
- <fRotationX>:
- <fRotationY>:
- <fRotationZ>:
- <fRotationRandom>:
- <fTumbleX>:
- <fTumbleY>:
- <fTumbleZ>:
- <fTumbleRandom>:
Updated Formatting? Initial
Updated for HWRM? Initial