Difference between revisions of "049C"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 049C=3,%3d% %1h% %2d% | description = Creates a scripted path file | p1 = Scripted path file ID | p2 = Width | p3 …')
 
Line 7: Line 7:
 
| game        = [[Vice City]]
 
| game        = [[Vice City]]
 
}}
 
}}
This opcode defines the scripted file to be used by other [[Scripted Path#Scripting|related opcodes]]. The first parameter comes from the path file's number at the end of the file name, i.e. spath0.dat would be ID 0, spath1.dat would be ID 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 curve can be. Only one scripted path file was used by default but additional scripted paths can be created and used. Note that the parameters are rearranged.
+
This opcode defines the scripted file to be used by other [[Scripted Path#Scripting|related opcodes]]. The first parameter comes from the path file's number at the end of the file name, i.e. spath0.dat would be ID 0, spath1.dat would be ID 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 handle can be defined for a scripted path file. Only one scripted path file was used by default but additional scripted paths can be created and used. Note that the parameters are rearranged.
 
[[Sanny Builder]] example:<source lang="scm">049C: 0@ = scripted_path_file 0 width 5.0</source>
 
[[Sanny Builder]] example:<source lang="scm">049C: 0@ = scripted_path_file 0 width 5.0</source>
  

Revision as of 11:00, 25 April 2010

{{{games}}}


Description
Creates a scripted path file
Syntax
{{{syntax1}}}
Parameter

This opcode defines the scripted file to be used by other related opcodes. The first parameter comes from the path file's number at the end of the file name, i.e. spath0.dat would be ID 0, spath1.dat would be ID 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 handle can be defined for a scripted path file. Only one scripted path file was used by default but additional scripted paths can be created and used. Note that the parameters are rearranged.

Sanny Builder example:

049C: 0@ = scripted_path_file 0 width 5.0

Note

The above format is more commonly used. The actual format of this opcode is in order:
049C=3,%1d% %2h% %3d%
The format to use depends on which INI file you use.