camCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 27: Line 27:


_camera = '''"camera"''' '''camCreate''' [[getPos]] [[player]]
_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).

Revision as of 15:20, 16 April 2006

back to COMREF

type camCreate position


Operand types:

type: String

position: Array

Type of returned value:

Object

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).