Difference between revisions of "cameraEffect"
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (docs updated) |
|||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | | + | | Sets the given effect on the given camera. If you want to switch the screen directly to the first-person, aiming, third-person or group view of an object, use [[switchCamera]] instead. The effect type "Terminate" is used to exit the current camera view and switch back to the player's view. Does not need [[camCommit]]. |
+ | <br><br> | ||
+ | Since Arma 3 v1.73.142217, it is possible to terminate individual r2t source. For example: <code>cam [[cameraEffect]] ["terminate", "back", "rtt1"]; // would terminate "rtt1" rt2 source | ||
+ | cam [[cameraEffect]] ["terminate", "back"]; // would terminate all r2t sources</code>|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | camera '''cameraEffect''' [ | + | | camera '''cameraEffect''' [effectName, effectPosition, r2tName] |= Syntax |
|p1= camera: [[Object]] - object of type "camera" |= Parameter 1 | |p1= camera: [[Object]] - object of type "camera" |= Parameter 1 | ||
− | |p2= | + | |p2= effectName, effectPosition, r2tName]: [[Array]] |= Parameter 2 |
− | |p3= | + | |p3= effectName: [[String]] - the effect type (defined in main config or [[Description.ext#CfgCameraEffects|CfgCameraEffects]] >> Array). Defaults are: <tt>"Internal"</tt>, <tt>"External"</tt>, <tt>"Fixed"</tt>, <tt>"FixedWithZoom"</tt>, <tt>"Terminate"</tt> |= Parameter 3 |
− | |p4= | + | |p4= effectPosition: [[String]] - position of the effect. One of: <tt>"TOP"</tt>, <tt>"LEFT"</tt>, <tt>"RIGHT"</tt>, <tt>"FRONT"</tt>, <tt>"BACK"</tt>, <tt>"LEFT FRONT"</tt>, <tt>"RIGHT FRONT"</tt>, <tt>"LEFT BACK"</tt>, <tt>"RIGHT BACK"</tt>, <tt>"LEFT TOP"</tt>, <tt>"RIGHT TOP"</tt>, <tt>"FRONT TOP"</tt>, <tt>"BACK TOP"</tt>, <tt>"BOTTOM"</tt>. These are usually used with "Fixed" and "FixedWithZoom" effect types. If not sure which position to use, set it to "BACK"; |= Parameter 4 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p5= r2tName (Optional): [[String]] - [[Procedural_Textures#Render_To_Texture|Render To Texture]] surface reference |= Parameter 5 | |
− | |||
− | |||
− | |p5= | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 88: | Line 74: | ||
* CamTerminate <tt>type <nowiki>=</nowiki> 4;</tt> // terminate | * CamTerminate <tt>type <nowiki>=</nowiki> 4;</tt> // terminate | ||
* CamInternal <tt>type <nowiki>=</nowiki> 5;</tt> // internal view | * CamInternal <tt>type <nowiki>=</nowiki> 5;</tt> // internal view | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 18:46, 26 June 2017
Notes
Bottom Section
- Posted on October 30, 2016 - 16:40 (UTC)
- Killzone Kid
-
Types of camera for CfgCameraEffects config:
- CamExternal (CamInterpolated) type = 0; // linked directly with object
- CamStatic type = 1; // fixed point in space
- CamStaticWithZoom type = 2; // fixed point in space
- CamChained type = 3; // chained
- CamTerminate type = 4; // terminate
- CamInternal type = 5; // internal view