0107
Revision as of 01:45, 23 July 2015 by Spaceeinstein (talk | contribs) (Created page with "thumb|300px|The left bus sign was created using 0107 while the right was created using 029B, both at ground z. {{Icon|trilogy}} '''CREATE_OBJECT''' <hr...")
Description
- Creates an object at a point
Syntax
- 0107: [var] = create_object [int] at [flt1] [flt2] [flt3]
Parameter
- [var]
- Variable to store the handle of the object
- [int]
- [flt1]
- X-coordinate
- [flt2]
- Y-coordinate
- [flt3]
- Z-coordinate (or -100.0 for ground z)
This opcode creates an object at a point. The z-coordinate uses the bottom rather than the center of the object's bounding box. Use opcode 029B to create an object without this offset. It is not required to use opcode 0247 to load the model.
Keywords
create, spawn, object, model