Difference between revisions of "049D"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|VC}} '''START_OBJECT_ON_PATH'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = START_OBJECT_ON_PATH
: Attaches an object to a [[Script Path|script path]]
+
| description = Attaches the object to the [[Script Path|script path]]
'''Syntax'''
+
| syntax1    = 049D: attach_scripted_file [''path handle''] with_object [''object handle'']
: 049D: attach_scripted_file [''path handle''] with_object [''object handle'']
+
| p1t        = [''object handle'']
'''Parameter'''
+
| p1d        = The handle of the object
: [''object handle'']
+
| p2t        = [''path handle'']
:: The handle of the object
+
| p2d        = The [[049C|handle of the script path]]
: [''path handle'']
+
}}
:: The handle of the script path
 
  
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.
+
This opcode attaches the 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 the object will not attach and may cause game instability.
  
 
== Keywords ==
 
== Keywords ==
 
attach, start, object, script, scripted, path, file
 
attach, start, object, script, scripted, path, file
 
[[Category:OpCodes]]
 

Latest revision as of 22:09, 4 September 2017

Vice City START_OBJECT_ON_PATH


Description
Attaches the object to the script path
Syntax
049D: attach_scripted_file [path handle] with_object [object handle]
Parameter
[object handle]
The handle of the object
[path handle]
The handle of the script path

This opcode attaches the 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 the object will not attach and may cause game instability.

Keywords

attach, start, object, script, scripted, path, file