User Tools

Site Tools


modding:function:objgetarmorlevel

Discuss this page on this pages TalkPage

objGetArmorLevel

Syntax (objGetArmorLevel obj item/armorSegment)
Arguments obj: Spaceobject the armor is on
item/armorSegment:
Returns Percentage
Category spaceObject functions
Description Returns the armor's hitpoints as a percentage of full.

Example

 (objGetArmorLevel gPlayership 0)

Returns the hitpoints as a percentage of full of the playership's forward segment.

Return to Space Object functions list

Return to functions list

modding/function/objgetarmorlevel.txt · Last modified: 2017/02/04 06:43 by xephyr