Difference between revisions of "049E"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} '''SET_OBJECT_PATH_SPEED''' <hr /> '''Description''' : Sets the speed of the script path '''Syntax''' : 049E: set_scripted_file [''path handle''] s...")
 
m
 
Line 1: Line 1:
{{Icon|VC}} '''SET_OBJECT_PATH_SPEED'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = SET_OBJECT_PATH_SPEED
: Sets the speed of the [[Script Path|script path]]
+
| description = Sets the speed of objects on the [[Script Path|script path]]
'''Syntax'''
+
| syntax1    = 049E: set_scripted_file [''path handle''] speed_to [''flt'']
: 049E: set_scripted_file [''path handle''] speed_to [''flt'']
+
| p1t        = [''path handle'']
'''Parameter'''
+
| p1d        = The [[049C|handle of the script path]]
: [''path handle'']
+
| p2t        = [''flt'']
:: The handle of the script path
+
| p2d        = Speed in units per second
: [''flt'']
+
}}
:: Speed in units per second
 
  
This opcode sets the speed in units per second of the script path. A negative value is acceptable, allowing objects on the path to move backwards.
+
This opcode sets the speed in units per second of objects on the script path. A negative value is acceptable, allowing objects on the path to move backwards.
  
 
== Keywords ==
 
== Keywords ==
 
set, object, script, scripted, path, file, speed
 
set, object, script, scripted, path, file, speed
 
[[Category:OpCodes]]
 

Latest revision as of 22:12, 4 September 2017

Vice City SET_OBJECT_PATH_SPEED


Description
Sets the speed of objects on the script path
Syntax
049E: set_scripted_file [path handle] speed_to [flt]
Parameter
[path handle]
The handle of the script path
[flt]
Speed in units per second

This opcode sets the speed in units per second of objects on the script path. A negative value is acceptable, allowing objects on the path to move backwards.

Keywords

set, object, script, scripted, path, file, speed