e2 docs hologram - wiremod/wire GitHub Wiki
Hologram
= holoCreate(
Index,
Position,
Scale,
Ang,
Color,
Model)
Index, Position, Scale, Angle, Color (RGB), Model Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position,
Scale,
Ang,
Color,
Model)
Index, Position, Scale, Angle, Color (RGBA), Model Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position,
Scale,
Ang,
Color)
Index, Position, Scale, Angle, Color (RGB) Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position,
Scale,
Ang,
Color)
Index, Position, Scale, Angle, Color (RGBA) Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position,
Scale,
Ang)
Index, Position, Scale, Angle Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position,
Scale)
Index, Position, Scale Creates a new hologram entity (30 ops)
= holoCreate(
Index,
Position)
Index, Position Creates a new hologram entity (30 ops)
= holoCreate(
Index)
Index Creates a new hologram entity (30 ops)
Index)
holoDelete(Removes a hologram (20 ops)
holoDeleteAll()
Removes all holograms made by this E2 (20 ops)
All)
holoDeleteAll((20 ops)
Index,
Model,
Scale,
Color,
Material)
holoReset(Similar to holoCreate, but reusing the old entity (20 ops)
= holoCanCreate()
Returns 1 when holoCreate() will successfully create a new hologram until the Max limit is reached Replaces holoRemainingSpawns() (2 ops)
= holoRemainingSpawns()
Returns how many holograms can be created this execution (2 ops)
= holoAmount()
(2 ops)
= holoMaxAmount()
(2 ops)
Index,
Scale)
holoScale(Sets the scale of the given hologram, as a multiplier (30 ops)
= holoScale(
Index)
Returns the scale of the given hologram (30 ops)
Index,
Size)
holoScaleUnits(Sets the scale of the given hologram, in source units (30 ops)
= holoScaleUnits(
Index)
Returns the scale of the given hologram in source units (30 ops)
Index,
Boneindex,
Scale)
holoBoneScale(Sets the scale of the given hologram bone, as a multiplier (30 ops)
Index,
Bone,
Scale)
holoBoneScale(Sets the scale of the given hologram named bone, as a multiplier (30 ops)
= holoBoneScale(
Index,
Boneindex)
Returns the scale of the given hologram bone (30 ops)
= holoBoneScale(
Index,
Bone)
Returns the scale of the given hologram named bone (30 ops)
= holoBonePos(
Index,
Boneindex)
Returns the position of the given hologram bone (30 ops)
= holoBonePos(
Index,
Bone)
Returns the position of the given hologram named bone (30 ops)
= holoBoneAng(
Index,
Boneindex)
Returns the angles of the given hologram bone (30 ops)
= holoBoneAng(
Index,
Bone)
Returns the angles of the given hologram named bone (30 ops)
= holoClipsAvailable()
Returns the maximum number of clipping planes allowed per hologram (1 ops)
Index,
Enabled)
holoClipEnabled(Enables / disables clipping for a hologram with specified index (30 ops)
Index,
Clipidx,
Enabled)
holoClipEnabled(Enables / disables clipping for a hologram with specified index. Clip index is for use with multiple clipping planes (30 ops)
Index,
Origin,
Normal,
Isglobal)
holoClip(Defines a plane used to clip a hologram specified by it's position, direction and number 1/0 whether the position should be global or local to the hologram (30 ops)
Index,
Clipidx,
Origin,
Normal,
Isglobal)
holoClip(Defines a plane used to clip a hologram specified by it's index, position, direction and number 1/0 whether the position should be global or local to the hologram (30 ops)
Index,
Origin,
Normal,
Localent)
holoClip(Defines a plane used to clip a hologram specified by it's position, and direction local to the given entity (30 ops)
Index,
Clipidx,
Origin,
Normal,
Localent)
holoClip(Defines a plane used to clip a hologram specified by it's index, position, and direction local to the given entity (30 ops)
Index,
Position)
holoPos(Sets the position of the hologram (15 ops)
Index,
Position)
holoLocalPos(Sets the local position of the hologram (15 ops)
= holoPos(
Index)
Gets the position of the hologram (15 ops)
Index,
Ang)
holoAng(Sets the angle of the hologram (15 ops)
Index,
Ang)
holoLocalAng(Sets the local angle of the hologram (15 ops)
= holoAng(
Index)
Gets the angle of the hologram (15 ops)
Index,
Color)
holoColor(Sets the color of the hologram (15 ops)
Index,
Color)
holoColor(Sets the color and alpha of the hologram (15 ops)
Index,
Color,
Alpha)
holoColor(Sets the color and alpha of the hologram (15 ops)
Index,
Alpha)
holoAlpha(Sets the transparency (0-255) of the hologram (15 ops)
Index,
Has_shadow)
holoShadow(Enables the hologram's shadow (10 ops)
Index,
Disable)
holoDisableShading(If 1, supresses engine lighting when drawing this hologram (10 ops)
Index,
Enable)
holoInvertModel(If not 0, inverts the model of the hologram (10 ops)
= holoModelList()
Returns the list of valid models See holoModelAny() (10 ops)
= holoModelAny()
Returns 1 if models outside of holoModelList can be used. Reads convar 'wire_holograms_modelany' (1 ops)
Index,
Model)
holoModel(Sets the model. Must be from holoModelList unless wire_holograms_modelany is 1 (see holoModelAny()) (10 ops)
Index,
Model,
Skin)
holoModel(Sets the model and skin. Must be from holoModelList unless wire_holograms_modelany is 1 (see holoModelAny()) (10 ops)
Index,
Skin)
holoSkin(Changes the skin of a hologram (10 ops)
Index,
Material)
holoMaterial(Sets the overlay material of the hologram (10 ops)
Index,
Color)
holoPlayerColor(Sets the sub-color of a hologram with player model such as clothes or physgun (10 ops)
Index,
Effect)
holoRenderFX(Changes the RenderFX for a hologram (10 ops)
Index,
Bgrp_id,
Bgrp_subid)
holoBodygroup(Index, Group ID, Group SubID Sets the bodygroups of the given hologram (10 ops)
= holoBodygroups(
Index,
Bgrp_id)
Index, Group ID Returns the number of bodygroups in the Group ID of the given hologram (10 ops)
Index,
Ply,
Visible)
holoVisible(If 0, prevents a specific player from seeing the hologram (10 ops)
Index,
Players,
Visible)
holoVisible(If 0, prevents an array of players from seeing the hologram (10 ops)
Index,
Otherindex)
holoParent(Parents the hologram to another hologram (40 ops)
Index,
Ent)
holoParent(Parents the hologram to an entity (40 ops)
Index,
Ent,
Attachmentname)
holoParentAttachment(Parents the hologram to an entity's bone by its attachment name (40 ops)
Index,
Otherindex,
Attachmentname)
holoParentAttachment(Parents the hologram to another hologram's attachment by its attachment name (40 ops)
Index,
Ent,
Bone)
holoParentBone(Parents the hologram to an entity's bone by its bone index. Note this is completely different from E2 (physics) bones (40 ops)
Index,
Otherindex,
Bone)
holoParentBone(Parents the hologram to another hologram's bone by its bone index. Note this is completely different from E2 (physics) bones (40 ops)
Index)
holoUnparent(Un-parents the hologram (40 ops)
Index,
State)
holoBonemerge(Enables bonemerge behavior on the hologram when the second argument is not 0 (10 ops)
= holoEntity(
Index)
Returns the entity corresponding to the hologram given by the specified index (2 ops)
= holoIndex(
Ent)
Returns the index of the given hologram entity (30 ops)
Index,
Animation)
holoAnim(Plays animation on the hologram specified by the index from frame 0 at the speed of 1 (15 ops)
Index,
Animation,
Frame)
holoAnim((15 ops)
Index,
Animation,
Frame,
Rate)
holoAnim(Plays animation on the hologram specified by the index, the speed and starting point of which is determined by frame (ranging from 0 to 1) and rate (ranging from -12 to 12) values respectively (15 ops)
Index,
Animation)
holoAnim(Plays animation on the hologram specified by the index from frame 0 at the speed of 1 (15 ops)
Index,
Animation,
Frame)
holoAnim((15 ops)
= holoGetAnimFrame(
Index)
Returns the current frame of the playing animation (ranging from 0 to 1) on the index hologram (15 ops)
Index,
Animation,
Frame,
Rate)
holoAnim(Plays animation on the hologram specified by the index, the speed and starting point of which is determined by frame (ranging from 0 to 1) and rate (ranging from -12 to 12) values respectively (15 ops)
= holoGetAnims(
Index)
Returns the number value of the animation string (15 ops)
= holoAnimLength(
Index)
Returns the duration of the currently playing animation index hologram (15 ops)
= holoAnimNum(
Index,
Animation)
Returns the number value of the animation string on the index hologram (15 ops)
= holoGetAnimGroundSpeed(
Index,
Animation)
Returns the ground speed of the string animation on the index hologram (15 ops)
Index,
Frame)
holoSetAnimFrame(Sets the frame of the active animation of the index hologram (ranging from 0 to 1) (15 ops)
Index,
Rate)
holoSetAnimSpeed(Sets the active animation speed of the index hologram (ranging from -12 and 12) (15 ops)
= holoGetAnimGroundSpeed(
Index,
Animation)
Returns the ground speed of the number animation on the index hologram (15 ops)
Index,
Pose,
Value)
holoSetPose(Sets the string pose parameter on the index hologram by the number value, the range of which can be found with holoGetPoseRange() (15 ops)
= holoGetPose(
Index,
Pose)
Returns the pose parameter specified by the string on the hologram specified by the index (15 ops)
= holoGetPoses(
Index)
Returns all existing pose parameters on the hologram specified by the index (15 ops)
= holoGetPoseRange(
Index,
Pose)
Returns the range of the pose parameter specified by the string on the hologram specified by the index (15 ops)
Index)
holoClearPoses(Sets all pose parameters of the hologram specified by the index to 0 (15 ops)