Difference between revisions of "0003"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''0003: shake_camera P'''<br>
+
{{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
 +
}}
  
'''Number of parameters(P):''' 1
+
This opcode shakes the in-game camera for a while. The higher the value is, the more and the longer the camera shakes.
  
'''Works in:''' <br>III, VC, SA
+
== Keywords ==
 +
shake, jostle, cam, camera
  
'''Barton's Mission Builder Syntax:'''<br>
+
== See also ==
0003: shake_camera 40
+
* {{Icon|3}} [[0136]], shake camera with point
 
 
'''Sanny Builder Syntax:'''<br>
 
Camera.Shake(40)
 
 
 
'''ini variations:'''<br>
 
''original:'' 0003=1,shake_camera %1d%<br>
 
''PLPyton:'' 0003=1,shake_camera %1d% <br>
 
''spaceeinstien:'' 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 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
 

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