User Tools

Site Tools


modding:function:objgetarmorcriticality

Discuss this page on this pages TalkPage

objGetArmorCriticality

Syntax (objGetArmorCriticality obj armorSegment)
Arguments obj: the space object
armorSegment: The armor segment to check. Also accepts an item type(?)
Returns criticality type
Category spaceObject functions
Description Used for determining if a given armor segment is a critical segment. Noncritical armor segments are no longer used; use internal compartments instead.

Example

 (objGetArmorCriticality gPlayership 0) 

Returns “critical” if the playership's forward armor segment is a critical segment, which it should be.

Return to Space Object functions list

Return to functions list

modding/function/objgetarmorcriticality.txt · Last modified: 2017/02/04 06:39 by xephyr