Difference between revisions of "0003"

From GTAMods Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Number of parameters(P):''' 1
+
{{OpCode
 +
| games      = {{Icon|t}}
 +
| command    = SHAKE_CAM
 +
| description = Shakes the in-game camera
 +
| syntax1    = 0003: shake_camera [''int'']
 +
| syntax2    = Camera.Shake( [''int''] )
 +
| p1t        = [''int'']
 +
| p1d        = Intensity and duration of the shaking
 +
}}
  
'''Works in:''' <br>III, VC, SA
+
This opcode shakes the in-game camera for a while. The higher the value is, the more and the longer the camera shakes.
  
'''Barton's Mission Builder Syntax:'''<br>
+
== Keywords ==
0003: shake_camera 40
+
shake, jostle, cam, camera
  
'''Sanny Builder Syntax:'''<br>
+
== See also ==
Camera.Shake(40)
+
* {{Icon|3}} [[0136]], shake camera with point
 
 
'''ini variations:'''<br>
 
''original:'' 0003=1,shake_camera %1d%<br>
 
''PLPynton:'' 0003=1,shake_camera %1d% <br>
 
''spaceeinstein:'' 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 ther camera shake.
 
 
 
'''Parameters:'''
 
 
 
P (integer) = time in milliseconds
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 03:59, 3 January 2016

GTA III Vice City San Andreas SHAKE_CAM


Description
Shakes the in-game camera
Syntax
0003: shake_camera [int]
Camera.Shake( [int] )
Parameter
[int]
Intensity and duration of the shaking

This opcode shakes the in-game camera for a while. The higher the value is, the more and the longer the camera shakes.

Keywords

shake, jostle, cam, camera

See also

  • GTA III 0136, shake camera with point