camCreate

From Bohemia Interactive Community
Revision as of 20:07, 21 October 2018 by Killzone Kid (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Create a camera or a seagull object on the given position. Also other objects can be created this way, but vehicles created with camCreate cannot be entered. Any units created with camCreate will remain static. Differently to createVehicle, objects are created without consideration of the collision detection with surrounding objects, thus the objects are spawned exactly at the given position. camCreate is conducted immediately, the command doesn't wait for camCommit
.
This command creates an invisible local Object of certain type and nothing more. Further cameraEffect needs to be applied to this object in order for the view to switch to custom camera. To delete the object use camDestroy
Multiplayer:
camCreated objects are only visible locally (meaning they are client-side effects).
Groups:
Uncategorised

Syntax

Syntax:
type camCreate position
Parameters:
type: String - camera type, one of the following:
  • "camera"
  • "seagull"
  • "camconstruct"
  • "camcurator" (Since Arma 3 Zeus)
  • or any vehicle class suitable to be spawned with cam
position: Array - format Position - position to create the object at
Return Value:
Object - The newly created object is returned.

Examples

Example 1:
_cam = "camera" camCreate (position player)

Additional Information

See also:
camCommandcamDestroycamSetFocuscamCommitsetPiPEffectcreateVehiclecreateUnitshowCinemaBordercameraEffectcameraEffectEnableHUD

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on August 3, 2006 - 14:14
hardrock
Notes from before the conversion: (CWR 1.91) createVehicle is a valid replacement (with special consideration to locality). You can also use camCreate to create objects. flare1 = "flare" camCreate getPos gameLogic_1 However, soldier units created in this way have little or no AI.

Bottom Section