Difference between revisions of "0003"

From GTAMods Wiki
Jump to navigation Jump to search
m
(correction and standardizing)
Line 1: Line 1:
'''Number of parameters(P):''' 1
+
{{OpCode
 +
| ini        = 0003=1,%1d%
 +
| description = Shakes the in-game camera
 +
| p1          = Integer (intensity of shaking)
 +
| game        = GTA3, Vice City, San Andreas
 +
}}
 +
This opcode shakes the in-game camera. The higher the value is, the more the camera shakes.
  
'''Works in:''' <br>III, VC, SA
+
==Note==
 +
In [[Sanny Builder]], this opcode is equivalent to the command '''Camera.Shake'''.
  
'''Barton's Mission Builder Syntax:'''<br>
+
Example: <source lang="scm">Camera.Shake(20)</source>
0003: shake_camera 40
 
 
 
'''Sanny Builder Syntax:'''<br>
 
Camera.Shake(40)
 
 
 
'''ini variations:'''<br>
 
''original:'' 0003=1,shake_camera %1d%<br>
 
''PLPynton:'' 0003=1,shake_camera %1d% <br>
 
 
 
'''C++ Hook Syntax:'''
 
 
 
''Spookie's Vice City C++ Hook:'' const SCRIPT_COMMAND shake_camera = { 0x0003, "i" };<br>
 
''op9080's San Andreas C++ Hook:'' DEFINE_OPCODE(shake_camera, 0x0003, "i");<br>
 
 
 
'''Description:'''
 
 
 
This opcode shakes the in-game camera for a given amount of time (P) in milliseconds. Can usually be seen when large explosions occur in the game. The longer the time, the bigger the camera shake.
 
 
 
'''Parameters:'''
 
 
 
P (integer) = time in milliseconds
 
 
 
[[Category:OpCodes]]
 

Revision as of 07:51, 17 August 2009

{{{games}}}


Description
Shakes the in-game camera
Syntax
{{{syntax1}}}
Parameter

This opcode shakes the in-game camera. The higher the value is, the more the camera shakes.

Note

In Sanny Builder, this opcode is equivalent to the command Camera.Shake.

Example:

Camera.Shake(20)