Difference between revisions of "Get-damage-caused"

From FreeSpace Wiki
Jump to: navigation, search
(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…")
 
m (categorization forgotten again)
 
Line 8: Line 8:
 
==Notes==
 
==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%.
 
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%.
 +
 +
[[Category:SCP SEXPs]]

Latest revision as of 16:00, 15 March 2011

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%.