Difference between revisions of "049C"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{Icon|VC}} '''INITIALISE_OBJECT_PATH'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = INITIALISE_OBJECT_PATH
: Requests a [[Script Path|script path file]]
+
| description = Initialises a [[Script Path|script path]]
'''Syntax'''
+
| syntax1    = 049C: [''var''] = scripted_path_file [''int''] width [''flt'']
: 049C: [''var''] = scripted_path_file [''int''] width [''flt'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Script path index
: [''int'']
+
| p2t        = [''flt'']
:: Script path file ID
+
| p2d        = Width of the path in units
: [''flt'']
+
| p3t        = [''var'']
:: Width of the path in units
+
| p3d        = Variable to store the handle of the script path
: [''var'']
+
}}
:: Variable to store the handle of the script path
 
  
This opcode requests a script path file to be used by other [[Scripted Path#Scripting|related opcodes]]. It can be released using opcode [[04A1]]. The first parameter comes from the path file's number at the end of the file name, i.e. <code>spath0.dat</code> would use a value of 0, <code>spath1.dat</code> would use a value of 1, etc. The second parameter denotes how far from the path can the object be when traveling along the path. The larger the value, the more smooth the path can be, while the smaller the value, the more rigid the path can be. More than one variables can handle one script path file. Only one script path file was used in the [[Main.scm|original script]] but additional script paths can be created and used.
+
This opcode initialises a script path to be used by [[Script Path#Mission script|script]]. It can be released using opcode [[04A1]]. The script path index comes from the path file's number at the end of the file name, i.e. <code>spath0.dat</code> would use a value of ''0'', <code>spath1.dat</code> would use a value of ''1'', etc. The width of the path denotes how far from the path can the object be when traveling along the path. The larger the value, the more smooth the path can be, while the smaller the value, the more rigid the path can be. More than one variable can handle one script path file. Only one script path file was used in the [[Main.scm|original script]] but additional script paths can be created and used.
  
 
== Keywords ==
 
== Keywords ==
 
initialize, object, script, scripted, path, file
 
initialize, object, script, scripted, path, file
 
[[Category:OpCodes]]
 

Revision as of 14:31, 21 December 2016

Vice City INITIALISE_OBJECT_PATH


Description
Initialises a script path
Syntax
049C: [var] = scripted_path_file [int] width [flt]
Parameter
[int]
Script path index
[flt]
Width of the path in units
[var]
Variable to store the handle of the script path

This opcode initialises a script path to be used by script. It can be released using opcode 04A1. The script path index comes from the path file's number at the end of the file name, i.e. spath0.dat would use a value of 0, spath1.dat would use a value of 1, etc. The width of the path denotes how far from the path can the object be when traveling along the path. The larger the value, the more smooth the path can be, while the smaller the value, the more rigid the path can be. More than one variable can handle one script path file. Only one script path file was used in the original script but additional script paths can be created and used.

Keywords

initialize, object, script, scripted, path, file