camCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (VBS2 scripting category removal)
(mass edit: removing obsolete </dt> and </dd> tags)
Line 35: Line 35:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 3, 2006 - 14:14</dd>
<dd class="notedate">Posted on August 3, 2006 - 14:14
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:''
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:''


In version 1.90+ [[createVehicle]] is a valid replacement (with special consideration to locality).  
In version 1.90+ [[createVehicle]] is a valid replacement (with special consideration to locality).  
Line 46: Line 46:


However, soldier units created in this way have little or no AI.
However, soldier units created in this way have little or no AI.
</dd>
 


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 00:37, 18 October 2011

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.
Multiplayer:
camCreated objects are only visible locally (meaning they are client-side effects).
Groups:
Uncategorised

Syntax

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

Posted on August 3, 2006 - 14:14
hardrock
Notes from before the conversion: 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.

Bottom Section