Spath*.dat files are plain text script path files used only in Vice City to attach and move map objects along a path. These files are located in the
..\data\paths folder in the Vice City directory. These files, which mainly contain coordinates, can be controlled by the
main.scm script file. By default, Vice City has only one script path file,
spath0.dat, which controls Cortez's yacht in the mission "All Hands On Deck!" Additional script path files can be created by incrementing the number at the end of the file name by one, i.e.,
||integer||The number of lines that are to be read from the file.|
||float||X, Y, Z coordinates, each line linked to create a path|
Undefined lines of coordinates will use the center of the game (0, 0, 0) for the path.
049C: 0@ = scripted_path_file 0 width 5.0
049D: attach_scripted_file 0@ with_object 1@
Lastly, the attached objects can start moving along the path using opcode 049E.
049E: set_scripted_file 0@ speed_to 5.0
Note that if a script path is actively moving objects, replays will be disabled. Additional opcodes related to script paths include 049F, which warps the objects along the path instead of moving it, and opcode 04A1, which removes all references of the specified script path from the game. All of these attributes are saved in the block 17 of the save file so that you don't have to reapply the attributes again.
|Grand Theft Auto: Vice City|
|File Formats||.adf • .col • .cfg • .dff • .dat • .gxt • .ide • .ifp • .img/.dir • .ipl • .raw/.sdt • .rep • .scm • .txd|
|Documentation||Handling • Map Listing • Opcodes • Script Paths • Saves • Sound Effects|
|Tools||CLEO • Collision File Editor II • G-Tools • GXT Editor • IMG Tool • Limit Adjuster • KEd (map editor) • Sanny Builder (script editor) • TXD Workshop|
|Tutorials||How to create a mission • How to create a thread|
|Modifications||GTA: Liberty City • State of Liberty|