camCreate: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Effect is local) |
m (format) |
||
Line 12: | Line 12: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Object]] <nowiki>=</nowiki> type | | [[Object]] <nowiki>=</nowiki> type [[camCreate]] position|= Syntax | ||
|p1= type: [[String]] - either "camera", "seagull" or any other class name of OFP vehicles. |= Parameter 1 | |p1= type: [[String]] - either "camera", "seagull" or any other class name of OFP vehicles. |= Parameter 1 | ||
Line 22: | Line 22: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_cam <nowiki>=</nowiki> "camera" camCreate ([[position]] [[player]])</code> |= Example 1 | |x1= <code>_cam <nowiki>=</nowiki> "camera" [[camCreate]] ([[position]] [[player]])</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 37: | Line 37: | ||
<dd class="notedate">Posted on August 3, 2006 - 14:14 | <dd class="notedate">Posted on August 3, 2006 - 14:14 | ||
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''Notes from before the conversion:'' | <dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">''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. | |||
<code>flare1 <nowiki>=</nowiki> "flare" [[camCreate]] [[getPos]] gameLogic_1</code> | |||
You can also use camCreate to create objects. | |||
<code>flare1 <nowiki>=</nowiki> "flare" camCreate [[getPos]] gameLogic_1</code> | |||
However, soldier units created in this way have little or no AI. | However, soldier units created in this way have little or no AI. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 16:12, 14 September 2014
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
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:
(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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Camera Control
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters