<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=143.238.236.37</id>
	<title>UFOpaedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=143.238.236.37"/>
	<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/Special:Contributions/143.238.236.37"/>
	<updated>2026-05-03T09:23:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=UNITPOS.DAT&amp;diff=3654</id>
		<title>UNITPOS.DAT</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=UNITPOS.DAT&amp;diff=3654"/>
		<updated>2005-10-15T11:43:45Z</updated>

		<summary type="html">&lt;p&gt;143.238.236.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are 80 records of 14 values of one byte each. 1120 bytes in total.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[0] - Y position. 255 if unit specifically unused.&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[1] - X position.&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[2] - Z position. (0 is top level).&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[3] - &amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[4] - &amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[5] - &amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[6] - Seems to be the same number for all records, but does vary between saves.&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[7] - Always 0?&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[8] - &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
BB&#039;s notes:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Always seems to be 255 for X-Com controlled (as opposed to owned) units.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This is NOT race specific, but has something to do with whether a unit has been seen or not. I&#039;ve observed this value changing to 0 as soon as an alien is spotted by a player controlled unit, even if the alien didn&#039;t see the other unit approach.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[9] - Owner flag. Possible values:&amp;lt;br&amp;gt;&lt;br /&gt;
0: X-Com&amp;lt;br&amp;gt;&lt;br /&gt;
1: Alien&amp;lt;br&amp;gt;&lt;br /&gt;
2: Civilian&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[10] - Unit info flags. Bits (from left to right, 87654321):&amp;lt;br&amp;gt;&lt;br /&gt;
(  1) 1: 0 = Invisible, 1 = visible.&amp;lt;br&amp;gt;&lt;br /&gt;
(  2) 2: 0 = Dead or unconcious, 1 = active.&amp;lt;br&amp;gt;&lt;br /&gt;
(  4) 3: 0 = Small unit, 1 = big unit.&amp;lt;br&amp;gt;&lt;br /&gt;
(  8) 4: 0 = Left section of unit, 1 = right side of unit.&amp;lt;br&amp;gt;&lt;br /&gt;
( 16) 5: 0 = Upper side of unit, 1 = lower side of unit.&amp;lt;br&amp;gt;&lt;br /&gt;
( 32) 6: Only seems to flag for certain tank parts. Could be where tank will fire from?&amp;lt;br&amp;gt;&lt;br /&gt;
( 64) 7: 0 = Normal, 1 = under mind control.&amp;lt;br&amp;gt;&lt;br /&gt;
(128) 8: Unused?&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Ignore bits 4 and 5 if bit 3 is unflagged.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[11] - &amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[12] - &amp;lt;br&amp;gt;&lt;br /&gt;
unitpos[13] -&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>143.238.236.37</name></author>
	</entry>
</feed>