Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

CBasePortal

GetHalfHeight

Gets the half height of the portal

float CBasePortal::GetHalfHeight()

GetHalfWidth

Gets the half width of the portal

float CBasePortal::GetHalfWidth()

GetPartner

Get the handle to the partner portal

handle CBasePortal::GetPartner()

GetPortalNumber

Gets the portal number. 1 for primary portal, 2 for secondary

int CBasePortal::GetPortalNumber()

IsMobile

Returns true if this is a movable portal

bool CBasePortal::IsMobile()

IsOpen

Returns true if the portal is open and passable

bool CBasePortal::IsOpen()

Inherited from CBaseAnimating

FindBodygroupByName

Find a bodygroup given its name, -1 if the bodygroup does not exist

int CBaseAnimating::FindBodygroupByName(string)

GetAttachmentAngles

Get the attachement id's angles as a p,y,r vector

Vector CBaseAnimating::GetAttachmentAngles(int)

GetAttachmentOrigin

Get the attachement id's origin vector

Vector CBaseAnimating::GetAttachmentOrigin(int)

GetBodygroup

Gets a bodygroup

int CBaseAnimating::GetBodygroup(int)

GetBodygroupCount

Gets the number of bodygroups in a group

int CBaseAnimating::GetBodygroupCount(int)

GetBodygroupName

Returns the name of the bodygroup

string CBaseAnimating::GetBodygroupName(int)

GetBodygroupPartName

Returns the bodygroup part name

string CBaseAnimating::GetBodygroupPartName(int, int)

GetBoneCount

Returns the number of bones

int CBaseAnimating::GetBoneCount()

GetBonePosition

Returns the world origin of the bone

Vector CBaseAnimating::GetBonePosition(int)

GetBoneRotation

Returns the rotation of the bone

Vector CBaseAnimating::GetBoneRotation(int)

GetNumBodyGroups

Returns the number of bodygroup groups

int CBaseAnimating::GetNumBodyGroups()

GetObjectScaleLevel

The scale size of the entity

int CBaseAnimating::GetObjectScaleLevel()

GetPlaybackRate

Returns the current playback rate

float CBaseAnimating::GetPlaybackRate()

GetPoseParameter

Returns pose parameter value based on index

float CBaseAnimating::GetPoseParameter(int)

GetPoseParameterMax

Returns the max value of the pose parameter

float CBaseAnimating::GetPoseParameterMax(int)

GetPoseParameterMin

Returns the min value of the pose parameter

float CBaseAnimating::GetPoseParameterMin(int)

GetSequence

Returns the current sequence

int CBaseAnimating::GetSequence()

GetSequenceActivityName

Returns the name of the sequence's activity

string CBaseAnimating::GetSequenceActivityName(int)

GetSequenceCount

Returns the number of available sequences

int CBaseAnimating::GetSequenceCount()

GetSequenceCycleRate

Gets the sequence cycle rate for the specified sequence

float CBaseAnimating::GetSequenceCycleRate(int)

GetSequenceDuration

Gets the sequence duration for the specified sequence

float CBaseAnimating::GetSequenceDuration(int)

GetSequenceName

Returns the name of the sequence, if it's valid

string CBaseAnimating::GetSequenceName(int)

GetSkin

Gets the current model skin ID

int CBaseAnimating::GetSkin()

IsActivityFinished

Is the current activity finished?

bool CBaseAnimating::IsActivityFinished()

IsSequenceFinished

Is the current sequence finished?

bool CBaseAnimating::IsSequenceFinished()

IsSequenceLooped

Returns if the specified sequence is looped or not

bool CBaseAnimating::IsSequenceLooped(int)

IsValidSequence

Checks if the specified sequence is valid

bool CBaseAnimating::IsValidSequence(int)

LookupActivity

Looks up an activity based on name

int CBaseAnimating::LookupActivity(string)

LookupAttachment

Get the named attachement id

int CBaseAnimating::LookupAttachment(string)

LookupPoseParameter

Lookup a pose parameter based on its name. Returns -1 if not found

int CBaseAnimating::LookupPoseParameter(string)

LookupSequence

Looks up a sequence based on name

int CBaseAnimating::LookupSequence(string)

SetBodygroup

Sets a bodygroup

void CBaseAnimating::SetBodygroup(int, int)

SetPlaybackRate

Sets the current playback rate

void CBaseAnimating::SetPlaybackRate(float)

SetPoseParameter

Set pose parameter value based on index

float CBaseAnimating::SetPoseParameter(int, float)

SetSequence

Sets the current sequence

void CBaseAnimating::SetSequence(int)

SetSkin

Sets the current model skin ID

void CBaseAnimating::SetSkin(int)

Inherited from CBaseEntity

ConnectOutput

Adds an I/O connection that will call the named function when the specified output fires

void CBaseEntity::ConnectOutput(string, string)

Destroy

No description provided

void CBaseEntity::Destroy()

DisconnectOutput

Removes a connected script function from an I/O event.

void CBaseEntity::DisconnectOutput(string, string)

EmitSound

Plays a sound from this entity.

void CBaseEntity::EmitSound(string)

EyeAngles

Get eye pitch, yaw, roll as a vector

Vector CBaseEntity::EyeAngles()

EyeLocalAngles

Get eye local pitch, yaw, roll as a vector

Vector CBaseEntity::EyeLocalAngles()

EyePosition

Get vector to eye position - absolute coords

Vector CBaseEntity::EyePosition()

FirstMoveChild

No description provided

handle CBaseEntity::FirstMoveChild()

GetAngles

Get entity pitch, yaw, roll as a vector

Vector CBaseEntity::GetAngles()

GetAngularVelocity

Get the local angular velocity - returns a vector of pitch,yaw,roll

Vector CBaseEntity::GetAngularVelocity()

GetBoundingMaxs

Get a vector containing max bounds, centered on object

Vector CBaseEntity::GetBoundingMaxs()

GetBoundingMaxsOriented

Get a vector containing max bounds, centered on object, taking the object's orientation into account

Vector CBaseEntity::GetBoundingMaxsOriented()

GetBoundingMins

Get a vector containing min bounds, centered on object

Vector CBaseEntity::GetBoundingMins()

GetBoundingMinsOriented

Get a vector containing min bounds, centered on object, taking the object's orientation into account

Vector CBaseEntity::GetBoundingMinsOriented()

GetCenter

Get vector to center of object - absolute coords

Vector CBaseEntity::GetCenter()

GetClassname

No description provided

string CBaseEntity::GetClassname()

GetCollisionGroup

Get the collision group

int CBaseEntity::GetCollisionGroup()

GetForwardVector

Get the forward vector of the entity

Vector CBaseEntity::GetForwardVector()

GetFriction

No description provided

float CBaseEntity::GetFriction()

GetGravity

No description provided

float CBaseEntity::GetGravity()

GetHealth

No description provided

int CBaseEntity::GetHealth()

GetLeftVector

Get the left vector of the entity

Vector CBaseEntity::GetLeftVector()

GetMaxHealth

No description provided

int CBaseEntity::GetMaxHealth()

GetModelKeyValues

Get a KeyValue class instance on this entity's model

handle CBaseEntity::GetModelKeyValues()

GetModelName

Returns the name of the model

string CBaseEntity::GetModelName()

GetMoveCollide

Returns the current move collide

int CBaseEntity::GetMoveCollide()

GetMoveParent

If in hierarchy, retrieves the entity's parent

handle CBaseEntity::GetMoveParent()

GetMoveType

Returns the current move type

int CBaseEntity::GetMoveType()

GetName

No description provided

string CBaseEntity::GetName()

GetNamespace

No description provided

string CBaseEntity::GetNamespace()

GetOrigin

No description provided

Vector CBaseEntity::GetOrigin()

GetOwner

Gets this entity's owner

handle CBaseEntity::GetOwner()

GetPreTemplateName

Get the entity name stripped of template unique decoration

string CBaseEntity::GetPreTemplateName()

GetRootMoveParent

If in hierarchy, walks up the hierarchy to find the root parent

handle CBaseEntity::GetRootMoveParent()

GetScriptId

Retrieve the unique identifier used to refer to the entity within the scripting system

string CBaseEntity::GetScriptId()

GetScriptScope

Retrieve the script-side data associated with an entity

handle CBaseEntity::GetScriptScope()

GetSoundDuration

Returns float duration of the sound. Takes soundname and optional actormodelname.

float CBaseEntity::GetSoundDuration(string, string)

GetTeam

No description provided

int CBaseEntity::GetTeam()

GetUpVector

Get the up vector of the entity

Vector CBaseEntity::GetUpVector()

GetVelocity

No description provided

Vector CBaseEntity::GetVelocity()

IsBSPModel

Returns if this entity is a BSP model or not (i.e. func_brush)

bool CBaseEntity::IsBSPModel()

NextMovePeer

No description provided

handle CBaseEntity::NextMovePeer()

PrecacheModel

No description provided

void CBaseEntity::PrecacheModel(string)

PrecacheScriptSound

No description provided

void CBaseEntity::PrecacheScriptSound(string)

PrecacheSoundScript

Precache a sound for later playing.

void CBaseEntity::PrecacheSoundScript(string)

SetAbsOrigin

SetAbsOrigin

void CBaseEntity::SetAbsOrigin(Vector)

SetAngles

Set entity pitch, yaw, roll

void CBaseEntity::SetAngles(float, float, float)

SetAngularVelocity

Set the local angular velocity - takes float pitch,yaw,roll velocities

void CBaseEntity::SetAngularVelocity(float, float, float)

SetCollisionGroup

Sets the collision group

void CBaseEntity::SetCollisionGroup(int)

SetForwardVector

Set the orientation of the entity to have this forward vector

void CBaseEntity::SetForwardVector(Vector)

SetFriction

No description provided

void CBaseEntity::SetFriction(float)

SetGravity

Sets gravity on this entity. Only affects gravity along Z axis

void CBaseEntity::SetGravity(float)

SetHealth

No description provided

void CBaseEntity::SetHealth(int)

SetMaxHealth

No description provided

void CBaseEntity::SetMaxHealth(int)

SetModel

No description provided

void CBaseEntity::SetModel(string)

SetMoveCollide

Set the move collide

void CBaseEntity::SetMoveCollide(int)

SetMoveType

Set the move type

void CBaseEntity::SetMoveType(int)

SetOrigin

No description provided

void CBaseEntity::SetOrigin(Vector)

SetOwner

Sets this entity's owner

void CBaseEntity::SetOwner(handle)

SetParent

Sets the parent entity

void CBaseEntity::SetParent(handle)

SetParentWithAttachment

Sets the parent entity with an attachment index

void CBaseEntity::SetParentWithAttachment(handle, int)

SetSize

No description provided

void CBaseEntity::SetSize(Vector, Vector)

SetTeam

No description provided

void CBaseEntity::SetTeam(int)

SetVelocity

No description provided

void CBaseEntity::SetVelocity(Vector)

Spawn

Spawns the entity

void CBaseEntity::Spawn()

StopSound

Stops a sound on this entity.

void CBaseEntity::StopSound(string)

ValidateScriptScope

Ensure that an entity's script scope has been created

bool CBaseEntity::ValidateScriptScope()

entindex

No description provided

int CBaseEntity::entindex()