Difference between revisions of "0400"
m (Please undo this if the icons should be there... but I guess they just were junk...) |
(they should...) |
||
Line 3: | Line 3: | ||
'''Description''': Gets the offset of the object's position | '''Description''': Gets the offset of the object's position | ||
{| cellpadding="0" cellspacing="0" | {| cellpadding="0" cellspacing="0" | ||
+ | ! | ||
+ | !{{Icon|3}} | ||
+ | !{{Icon|VC}} {{Icon|SA}} {{Icon|LCS}} {{Icon|VCS}} | ||
|- | |- | ||
| '''Parameter 1''': || Integer value || Existing object handle | | '''Parameter 1''': || Integer value || Existing object handle |
Revision as of 19:56, 18 March 2010
0400=1,%1d%
0400=7,%5d% %6d% %7d% %1d% %2d% %3d% %4d%
Description: Gets the offset of the object's position
Supports: GTA 3, Vice City, San Andreas, Liberty City Stories (0405), Vice City Stories (0279)
Analogous to GTA IV: GET_OFFSET_FROM_OBJECT_IN_WORLD_COORDS
In GTA III, this opcode saves the time stat for Multistorey Mayhem. In Vice City and San Andreas, this stores coordinates offset from the object's position. If you set the X, Y, and Z offsets to 0.0, it is better to use opcode 01BB instead since you are getting the object's own position. Note that the parameters are mixed around.
Sanny Builder example:
0400: store_coords_to 4@ 5@ 6@ from_object 0@ with_offset 1@ 2@ 3@
Note
The above format is more commonly used. The actual format of this opcode is in order:
0400=7,%1d% %2d% %3d% %4d% %5d% %6d% %7d%
The format to use depends on which INI file you use.
Keywords
get, store, object, position, location, offset