Difference between revisions of "0x0012"

From SimsWiki
Jump to: navigation, search
m (Adding to new primitive category)
Line 1: Line 1:
Used to remove (delete) an object inside the simulation from [[SimAntics]].
+
{{Primitive
 +
|name=Remove Object Instance
 +
|opcode=0x0012
 +
|expansion=The Sims 2
 +
}}
  
 
==Overview==
 
==Overview==
Used to delete objects.
+
This [[Primitives|primitive]] allows you to remove (delete) an object inside the simulation from [[SimAntics]]. It is essentially the opposite of [[0x002A|Create New Object Instance [0x002A]]].
  
 
==Use==
 
==Use==
The rightmost bit of the first opperator byte determines wich object will be removed: 0 for self, 1 for stack object.
+
There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.
  
The rightmost two bits of the third opperator byte determine the flags.
+
[[Image:BHAVoperands.JPG|thumb|300px|right|Operand editing]]
*The first (2 slot) determines whether to clean up all: 0 for yes, 1 for no.
+
 
*The second (1 slot) determines whether to return immediately: 0 for no, 1 for yes.
+
{| class="wikitable"
 +
|-
 +
!Operand!!Description!!Operand Values
 +
|-
 +
|1||What to remove||00:Me<br>anything else:Stack Object
 +
|-
 +
|2||Unused?
 +
|-
 +
|3 - bit 1||Controls "return immediately"||off: False<br>on: True
 +
|-
 +
|3 - bit 2||Controls "clean up all"||off: True<br>on: False (N.B. reversed from usual bit settings)
 +
|-
 +
|4 thru 15||Unused?
 +
|}
  
 
==See also==
 
==See also==
 
*[[Primitives]]
 
*[[Primitives]]
 
*[[SimAntics]]
 
*[[SimAntics]]
 
[[Category:Modding]]
 
[[Category:Primitives|{{PAGENAME}}]]
 

Revision as of 13:34, 3 October 2009

Remove Object Instance
OpCode:0x0012
Game Version:The Sims 2


Overview

This primitive allows you to remove (delete) an object inside the simulation from SimAntics. It is essentially the opposite of Create New Object Instance [0x002A].

Use

There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.

Operand editing
Operand Description Operand Values
1 What to remove 00:Me
anything else:Stack Object
2 Unused?
3 - bit 1 Controls "return immediately" off: False
on: True
3 - bit 2 Controls "clean up all" off: True
on: False (N.B. reversed from usual bit settings)
4 thru 15 Unused?

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox