Functions Documentation
View Function Edit Function
Name objGetShieldLevel
Syntax (objGetShieldLevel spaceObject)
Argument List spaceObject: The space object that you want to get the shield level of.
Returns number: The amount of shield left divided by the max amount of shield on the space object. Returns -1 if no shield is equipped.
Category spaceobject, shield
Description Finds and returns the percent of shield remaining.
Example
(objGetShieldLevel gplayership)

Returns the percent of shield remaining.
Comment This is also a shortcut to see if the object has a shield equipped.