camCreate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Scripting Commands]] | [[Category:Scripting Commands|C]] | ||
[[Category:Scripting Commands OFP 1.97]] | [[Category:Scripting Commands OFP 1.97|C]] | ||
[[Category:Scripting Commands OFP 1.46]] | [[Category:Scripting Commands OFP 1.46|C]] | ||
[[Category:Scripting Commands ArmA]] | [[Category:Scripting Commands ArmA|C]] | ||
back to [[Scripting_Reference#C|COMREF]] | back to [[Scripting_Reference#C|COMREF]] |
Revision as of 16:58, 22 April 2006
back to COMREF
type camCreate position
Operand types:
type: String
position: Array
Type of returned value:
Description:
Create camera or actor of given type at given initial position (format Position).
Type is one of:
- "CAMERA"
- "SEAGULL"
Example:
_camera = "camera" camCreate getPos player
Comments:
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.