Move an object

From GTAModding
Jump to: navigation, search

This article descripes how to create and move an object.

0247: load_model $MY_OBJECT
0001: wait 0 ms
00D6: if 0
0248:   model $MY_OBJECT available
004D: jump_if_false @LOADER
029B: $MY_OBJECT_HANDLE = init_object $MY_OBJECT at 0.0 0.0 0.0 
0001: wait 0 ms
00D6: if 0 
034E:   move_object $MY_OBJECT_HANDLE to 0.0 0.0 100.0 speed 0.0 0.0 0.1 flag 1 
004D: jump_if_false @MOVE_OBJECT
0249: release_model $MY_OBJECT
01C4: remove_references_to_object $MY_OBJECT

See also

  • 034E – move an object and check if it has arrived the target location.
  • 834E – move an object and check if it has not yet arrived the target location.
v · d · e
San Andreas Grand Theft Auto: San Andreas
File Formats.col.cfg.cut.dff.dat.fxp.gxt.ide.ifp.img.iplnodes*.dat.ped.rep.rrr.scm.set.txd
DocumentationAudioCryptographyCutscenesGame memoryHandling.cfgMap ListingMission PacksOpcodesPathsReplaysSavesScripts
ToolsCLEOCollision File Editor IIENBSeriesG-ToolsIMG ToolLimit AdjusterMap EditorMod LoaderSan Andreas Audio ToolkitSanny BuilderTXD Workshop
TutorialsSan Andreas v2.0 ModdingHow to create a missionHow to create a threadHow to use Map EditorVehicle Mod Installation
ModificationsDesign Your Own MissionGostown ParadiseGTA: UnitedMyriad Islands
MultiplayergtaTournamentMulti Theft AutoSan Andreas Multiplayer(more...)
Useful linksCommunity portalDiscussion forumsMods on GTAGarage.comOpcodes database