Type Hologram

Hologram type

Methods

getFlexes () Returns a table of flexname -> flexid pairs for use in flex functions.
remove () Deletes the hologram
setAng (ang) Sets the hologram angle
setAngVel (angvel) Sets the hologram's angular velocity.
setClip (index, enabled, origin, normal, islocal) Updates a clip plane
setFlexScale (scale) Sets the scale of all flexes of a hologram
setFlexWeight (flexid, weight) Sets the weight (value) of a flex.
setModel (model) Sets the model of a hologram
setParent (parent, attachment) Parents this hologram to the specified hologram
setPos (pos) Sets the hologram position.
setScale (scale) Sets the hologram scale
setVel (vel) Sets the hologram linear velocity
suppressEngineLighting (suppress) Suppress Engine Lighting of a hologram.


Methods

hologram_methods:getFlexes ()
Returns a table of flexname -> flexid pairs for use in flex functions. These IDs become invalid when the hologram's model changes.
hologram_methods:remove ()
Deletes the hologram
hologram_methods:setAng (ang)
Sets the hologram angle

Parameters:

  • ang: New angles
hologram_methods:setAngVel (angvel)
Sets the hologram's angular velocity.

Parameters:

  • angvel: *Vector* angular velocity.
hologram_methods:setClip (index, enabled, origin, normal, islocal)
Updates a clip plane

Parameters:

  • index:
  • enabled:
  • origin:
  • normal:
  • islocal:
hologram_methods:setFlexScale (scale)
Sets the scale of all flexes of a hologram

Parameters:

  • scale:
hologram_methods:setFlexWeight (flexid, weight)
Sets the weight (value) of a flex.

Parameters:

  • flexid:
  • weight:
hologram_methods:setModel (model)
Sets the model of a hologram

Parameters:

  • model: string model path
hologram_methods:setParent (parent, attachment)
Parents this hologram to the specified hologram

Parameters:

  • parent:
  • attachment:
hologram_methods:setPos (pos)
Sets the hologram position.

Parameters:

  • pos: New position
hologram_methods:setScale (scale)
Sets the hologram scale

Parameters:

  • scale: New scale
hologram_methods:setVel (vel)
Sets the hologram linear velocity

Parameters:

  • vel: New velocity
hologram_methods:suppressEngineLighting (suppress)
Suppress Engine Lighting of a hologram. Disabled by default.

Parameters:

  • suppress: Boolean to represent if shading should be set or not.

Valid XHTML 1.0!