camCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CAMCREATE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CAMCREATE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CAMCREATE]]
[[Category:Scripting Commands ArmA|CAMCREATE]]


| ofp |= Game name


<h2 style="color:#000066">'''''type'' camCreate ''position'''''</h2>
|1.00|= Game version


|eff= global |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| 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. With difference 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]]. |= Description
____________________________________________________________________________________________


'''type:''' [[String]]
| type '''camCreate''' position |= Syntax


'''position:''' [[Array]]
|p1= type: [[String]] - either "camera", "seagull" or any other class name of OFP vehicles. |= Parameter 1


'''Type of returned value:'''
|p2= position: [[Position]] - position to create the object at |= Parameter 2


[[Object]]
| [[Object]]
The newly created object is returned. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_cam = "camera" camCreate (position player)</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[camDestroy]], [[createVehicle]], [[createUnit]] |= See also


Create camera or actor of given '''type''' at given initial '''position''' (format [[Position]]).
}}


Type is one of:
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


* '''"CAMERA"'''
<!-- Note Section END -->
* '''"SEAGULL"'''
</dl>


<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


'''Example:'''
In multiplayer camCreated objects are only visible locally (meaning they are client-side effects). In version 1.90+ [[createVehicle]] is a valid replacement (with special consideration to locality).
You can also use camCreate to create objects. For example: flare1 = "flare" camCreate [[getPos]] gameLogic_1 However, soldier units created in this way have little or no AI.


_camera = '''"camera"''' '''camCreate''' [[getPos]] [[player]]
[[Category:Scripting Commands|CAMCREATE]]
 
[[Category:Scripting Commands OFP 1.96|CAMCREATE]]
 
[[Category:Scripting Commands OFP 1.46|CAMCREATE]]
'''Comments:'''
[[Category:Scripting Commands ArmA|CAMCREATE]]
 
In multiplayer '''camCreated''' objects are only visible locally (meaning they are client-side effects).
 
In version '''1.90+''' [[createVehicle]] is a valid replacement (with special consideration to locality).
 
 
You can also use camCreate to create objects.
 
For example:
 
flare1 = "flare" '''camCreate''' [[getPos]] gameLogic_1
 
However, soldier units created in this way have little or no AI.

Revision as of 23:31, 1 August 2006

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. With difference 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.
Groups:
Uncategorised

Syntax

Syntax:
type camCreate position
Parameters:
type: String - either "camera", "seagull" or any other class name of OFP vehicles.
position: 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:
camDestroycreateVehiclecreateUnit

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

Bottom Section

Old Notes (temporary):

In multiplayer camCreated objects are only visible locally (meaning they are client-side effects). In version 1.90+ createVehicle is a valid replacement (with special consideration to locality). You can also use camCreate to create objects. For example: flare1 = "flare" camCreate getPos gameLogic_1 However, soldier units created in this way have little or no AI.