Insimenator.org

Simmers' Paradise => Modding Database => Topic started by: Eric on August 24, 2005, 01:47:45 pm



Title: Create New Object Instance [Simantics Primitive]
Post by: Eric on August 24, 2005, 01:47:45 pm
These are my notes on how the Create New Object Instance primitive is used.  This is by no means a complete set of instructions for this primitive, but a work in progress.

ex. #1
(http://www.insimenator.net/files/createobjectinstance_129.gif)

• Operand 1, Operand 2, Operand 3 and Operand 4 are the GUID (in reverse order) of the object to be created.
• Operand 5 is where to create the object.
• Operand 6 is how to create the object.

Where to create:
0 = in front of me
1 = on top of me
2 = in my hand
3 = in front of stack object
4 = in user defined slot of stack object
5 = underneath me (walk-over-able objects only)
6 = out of world (put new object id in stack object)
7 = below object in stack param 0
8 = below object in local
9 = next to me in direction of local
A = in user defined slot of object in temp 0

How to create:
0 = Create object normally.
1 = Do not duplicate object.
2 = transfer current stack object to new object and put my id in stack param 0

To download a basic example on how to use this primitive ---> Fire! (http://www.insimenator.net/viewtopic.php?t=1288)


SimplePortal 2.1.1