camCreate
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
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.
Syntax
- Syntax:
- Object = "type" camCreate Position
- Parameters:
- type: String - either "camera", "seagull" or any other class name of OFP vehicles.
- Position - position to create the object at
- Return Value:
- Object - The newly created object is returned.
Examples
Additional Information
- Multiplayer:
- camCreated objects are only visible locally (meaning they are client-side effects).
- See also:
- camDestroy, createVehicle, createUnit
Notes
Notes
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_1However, soldier units created in this way have little or no AI.

