Difference between revisions of "049D"
Jump to navigation
Jump to search
(Created page with "{{Icon|VC}} '''START_OBJECT_ON_PATH''' <hr /> '''Description''' : Attaches an object to a script path '''Syntax''' : 049D: attach_scripted_file [''path handle'...") |
m |
||
Line 11: | Line 11: | ||
:: The handle of the object | :: The handle of the object | ||
− | This opcode attaches an object to the script path. The object is relocated to the current [[049F|position of the path]] by the center of its bounding box so it does not matter how or where the object was created beforehand. The object's position and heading cannot be changed after being attached. Once the first object is attached to the path, the path will immediately start with a speed of 1.0 though that can be changed through opcode [[049E]]. This opcode can only be used a maximum of six times per script path; any more times | + | This opcode attaches an object to the script path. The object is relocated to the current [[049F|position of the path]] by the center of its bounding box so it does not matter how or where the object was created beforehand. The object's position and heading cannot be changed after being attached. Once the first object is attached to the path, the path will immediately start with a speed of 1.0 though that can be changed through opcode [[049E]]. This opcode can only be used a maximum of six times per script path; any more times do not attach the object and may cause game instability. |
== Keywords == | == Keywords == |
Revision as of 02:38, 25 July 2015
Description
- Attaches an object to a script path
Syntax
- 049D: attach_scripted_file [path handle] with_object [object handle]
Parameter
- [path handle]
- The handle of the script path
- [object handle]
- The handle of the object
This opcode attaches an object to the script path. The object is relocated to the current position of the path by the center of its bounding box so it does not matter how or where the object was created beforehand. The object's position and heading cannot be changed after being attached. Once the first object is attached to the path, the path will immediately start with a speed of 1.0 though that can be changed through opcode 049E. This opcode can only be used a maximum of six times per script path; any more times do not attach the object and may cause game instability.
Keywords
attach, start, object, script, scripted, path, file