049C

From GTAMods Wiki
Jump to navigation Jump to search

Vice City INITIALISE_OBJECT_PATH


Description

Requests a script path file

Syntax

049C: [var] = scripted_path_file [int] width [flt]

Parameter

[var]
Variable to store the handle of the script path
[int]
Script path file ID
[flt]
Width of the path in units

This opcode requests a script path file to be used by other 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. spath0.dat would use a value of 0, spath1.dat 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 original script but additional script paths can be created and used.

Keywords

initialize, object, script, scripted, path, file