Functions Documentation
View Function Edit Function
Name staGetMaxStructuralHP
Syntax (staGetMaxStructuralHP station) -> hp
Argument List station: the station to check for max structural HP
Returns number: the structural HP of the station
Category station
Description Used to get the max structural HP of a station.
Example Taken from &intContainerOnDamage;
; Compute the how powerful the damage is; 
100 = enough to destroy all HP
(setq maxHP (staGetMaxStructuralHP theObj))
(if (gr maxHP 0)
(setq damageAdj (max 1 (divide (multiply 100 damageHP) maxHP)))
(block Nil
(setq damageAdj 1)
(setq maxHP 1)
)
)
Comment