<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#ships|Ships]] ===== GetShipHullSection ===== ^Arguments^Result^Notation^ |int int int| int| [int int int- int] | === Description === int ARG1: Ship UID
int ARG2: X coordinate of hull section.
int ARG3: Y coordinate of hull section

Gets the hull type of a section of a ship's hull. 0,0 is the lower left corner of the rectangular array that holds the hull sections for a ship. If the X or Y coordinate are out of bounds for this containing array, -1 is returned. If the X and Y coordinate point to a hull cell that does not exist, 0 is returned. For all others, the number that is returned describes the hull shape and armor state according to this table
NONE=0, HULL1=1, HULL2=2, HULL3=3, HULL4=4, HULL5=5, HULL6=6, HULL7=7, HULL8=8, HULL9=9, UNUSED=10, ARMOR1=11, ARMOR2=12, ARMOR3=13, ARMOR4=14, ARMOR5=15, ARMOR6=16, ARMOR7=17, ARMOR8=19, ARMOR9=19 === Examples === GetShipHullSection(<-ship 3 3) ->shipHull