http://direct.simswiki.info/index.php?title=0x0078&feed=atom&action=history0x0078 - Revision history2024-03-28T13:59:32ZRevision history for this page on the wikiMediaWiki 1.20.2http://direct.simswiki.info/index.php?title=0x0078&diff=53736&oldid=prevMogHughson: Created page with "{{Primitive |name=RayTrace |opcode=0x0078 |expansion=The Sims 2 }} ==Overview== This primitive provides a way to check whether there is a clear view of one object..."2011-10-30T18:52:53Z<p>Created page with "{{Primitive |name=RayTrace |opcode=0x0078 |expansion=The Sims 2 }} ==Overview== This <a href="/wiki.php?title=Primitives" title="Primitives">primitive</a> provides a way to check whether there is a clear view of one object..."</p>
<p><b>New page</b></p><div>{{Primitive<br />
|name=RayTrace<br />
|opcode=0x0078<br />
|expansion=The Sims 2<br />
}}<br />
<br />
==Overview==<br />
This [[Primitives|primitive]] provides a way to check whether there is a clear view of one object from another - for example can the TV be seen.<br />
<br />
<br clear="all"/><br />
<br />
==Use==<br />
There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.<br />
<br />
[[Image:BHAVoperands.JPG|thumb|300px|right|Operand editing]]<br />
<br />
{| class="wikitable" <br />
|-<br />
!Operand!!Description!!Operand Values<br />
|-<br />
|0||colspan="2"|Unused?<br />
|-<br />
|1||colspan="2"|The '''Object''' from which to make the ray trace. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 2 and 3 give the [[Byte Order|low and high order byte]] respectively.<br />
|-<br />
|2 & 3||colspan="2"|Variable number used for '''Object'''<br />
|-<br />
|4||Specific point of the '''Object'''||00: default 3/4 height<br>01: targeting slot: 0xnn (see operand 5)<br>02: routing slot: 0xnn (see operand 5)<br>03: containment slot: 0xnn (see operand 5)<br />
|-<br />
|5||colspan="2"|Slot number used for the various slot related options of operand 4<br />
|-<br />
|6 thru 7||colspan="2"|unused<br />
|-<br />
|8||colspan="2"|The '''Target''' towards which to make the ray trace. The choices are any of the many [[Sims 2 Variables|variables and attributes]] that are part of [[SimAntics]]. Where the variable type can have many of them, e.g. Local variables, operands 9 and 10 give the [[Byte Order|low and high order byte]] respectively.<br />
|-<br />
|9 & 10||colspan="2"|Variable number used for '''Target'''<br />
|-<br />
|11||Specific point of the '''Target'''||00: default 3/4 height<br>01: targeting slot: 0xnn (see operand 12)<br>02: routing slot: 0xnn (see operand 12)<br>03: containment slot: 0xnn (see operand 12)<br />
|-<br />
|12||colspan="2"|Slot number used for the various slot related options of operand 11<br />
|-<br />
|13 thru 14||colspan="2"|unused<br />
|-<br />
|15||Controls "Windows Ignored||off: False<br>on: True<br />
|-<br />
|}</div>MogHughson