Get-damage-caused

From FreeSpace Wiki
Revision as of 15:59, 15 March 2011 by TopAce (talk | contribs) (Created page with " Get damage caused (Status operator) Returns the amount of damage one or more ships have done to a ship. Takes 2 or more arguments... 1: Ship that has been damaged. 2: Nā€¦")
(diff) ā† Older revision | Latest revision (diff) | Newer revision ā†’ (diff)
Jump to: navigation, search
Get damage caused (Status operator)
	Returns the amount of damage one or more ships have done to a ship.

Takes 2 or more arguments...
	1:	Ship that has been damaged.
	2:	Name of ships that may have damaged it.

Notes

This returns the amount of damage (in percentage) done relative to the ship's default hitpoints. A ship with 1000 default hitpoints will return 10 if 100 points of damage were applied. If you raise the ship's hitpoints to 2000 in FRED (Ship Editor --> Special Hitpoints), then 100 points of damage will return 10 again, though the actual damage is 5%.