Difference between revisions of "SET CAM COMPONENT SHAKE"

From GTAMods Wiki
Jump to navigation Jump to search
(Shake the camera with the given parameters)
 
(wiki markup)
 
Line 3: Line 3:
 
|p1t      = Handle
 
|p1t      = Handle
 
|p1d      = Camera Handle
 
|p1d      = Camera Handle
 
 
|p2t      = Integer (0-9)
 
|p2t      = Integer (0-9)
|p2d      = Shake Type
+
|p2d      = [[#Shake Types|Shake Type]]
 
 
 
|p3t      = Integer (0-8)
 
|p3t      = Integer (0-8)
|p3d      = Shake Behaviour
+
|p3d      = [[#Shake Behaviour|Shake Behaviour]]
 
 
 
|p4t      = Integer
 
|p4t      = Integer
 
|p4d      = Shake Duration (ms)
 
|p4d      = Shake Duration (ms)
 
 
|p5t      = Float
 
|p5t      = Float
 
|p5d      = Shake Amplitude
 
|p5d      = Shake Amplitude
 
 
|p6t      = Float
 
|p6t      = Float
 
|p6d      = Shake Frequency
 
|p6d      = Shake Frequency
 
 
|p7t      = Float
 
|p7t      = Float
|p7d      = Unknown, Suggested: 0
+
|p7d      = (Usually 0.0, Sometimes (rarely) up to 0.9)
 
}}
 
}}
  
<h1>SET_CAM_COMPONENT_SHAKE</h1>
+
==Shake Types==
 
+
* 0 = Pitch up/down
<h2>Params</h2>
+
* 1 = Roll left/right
<ul>
+
* 2 = Yaw left/right
<li>CamID</li>
+
* 3 = Track forward/back
<li>ShakeType</li>
+
* 4 = Track left/right
<li>ShakeBehaviour</li>
+
* 5 = Track up/down
<li>Duration</li>
+
* 6 = Track left/right
<li>Amplitude</li>
+
* 7 = Track forward/back
<li>Frequency</li>
+
* 8 = Track up/down
<li>Unknown_float</li>
+
* 9 = Pulse in/out
</ul>
 
 
 
= Handle to camera</h4>
 
<hr>
 
 
<hr>
 
<ul>
 
<li>? 0 = Pitch up/down</li>
 
<li>? 1 = Roll left/right</li>
 
<li>? 2 = Yaw left/right</li>
 
<li>? 3 = Track forward/back</li>
 
<li>? 4 = Track left/right</li>
 
<li>? 5 = Track up/down</li>
 
<li>? 6 = Track left/right</li>
 
<li>? 7 = Track forward/back</li>
 
<li>? 8 = Track up/down</li>
 
<li>? 9 = Pulse in/out</li>
 
</ul>
 
 
 
 
<hr>
 
<ul>
 
<li>? 1 = Constant + fade in/out</li>
 
<li>? 2 = Constant + fade in</li>
 
<li>? 3 = Exponential + fade in/out</li>
 
<li>? 4 = Very Slow Exponential + fade in</li>
 
<li>? 5 = Fast Exponential + fade in/out</li>
 
<li>? 6 = Medium Fast Exponential + fade in/out</li>
 
<li>? 7 = Slow Exponential + fade in</li>
 
<li>? 8 = Medium Slow Exponential + fade in</li>
 
</ul>
 
 
 
 
<hr>
 
 
<hr>
 
 
<hr>
 
 
<hr>
 
<h2>Subtle Flight Shake (example)</h2>
 
  
<p>Native.Function.Call("SET_CAM_COMPONENT_SHAKE", Game.CurrentCamera, 1, 5, 5000, 0.0035, 6.8, 0)</p>
+
== Shake Behaviour ==
 +
* 1 = Constant + fade in/out
 +
* 2 = Constant + fade in
 +
* 3 = Exponential + fade in/out
 +
* 4 = Very Slow Exponential + fade in
 +
* 5 = Fast Exponential + fade in/out
 +
* 6 = Medium Fast Exponential + fade in/out
 +
* 7 = Slow Exponential + fade in
 +
* 8 = Medium Slow Exponential + fade in
  
<h4>ricci07, TheVideoVolcano, DiamondDownload, RGSoftware, Whatever.</h4>
+
==Example==
 +
<code>Native.Function.Call("SET_CAM_COMPONENT_SHAKE", Game.CurrentCamera, 1, 5, 5000, 0.0035, 6.8, 0)</code>

Latest revision as of 12:57, 30 April 2015

SET_CAM_COMPONENT_SHAKE
Number of parameters: 7
Parameter #TypeDescription
1.HandleCamera Handle
2.Integer (0-9)Shake Type
3.Integer (0-8)Shake Behaviour
4.IntegerShake Duration (ms)
5.FloatShake Amplitude
6.FloatShake Frequency
7.Float(Usually 0.0, Sometimes (rarely) up to 0.9)
Return value:
TypeDescription
None

Shake Types

  • 0 = Pitch up/down
  • 1 = Roll left/right
  • 2 = Yaw left/right
  • 3 = Track forward/back
  • 4 = Track left/right
  • 5 = Track up/down
  • 6 = Track left/right
  • 7 = Track forward/back
  • 8 = Track up/down
  • 9 = Pulse in/out

Shake Behaviour

  • 1 = Constant + fade in/out
  • 2 = Constant + fade in
  • 3 = Exponential + fade in/out
  • 4 = Very Slow Exponential + fade in
  • 5 = Fast Exponential + fade in/out
  • 6 = Medium Fast Exponential + fade in/out
  • 7 = Slow Exponential + fade in
  • 8 = Medium Slow Exponential + fade in

Example

Native.Function.Call("SET_CAM_COMPONENT_SHAKE", Game.CurrentCamera, 1, 5, 5000, 0.0035, 6.8, 0)