Portal 2: Community Edition

Documentation

Home ReferenceVScriptPanorama
GitHub
Edit

CBasePortal

Inherits CBaseAnimating

Signature Description
handle GetPartner() Returns a handle to this portal’s partner
int GetPortalNumber() Returns the portal ‘number’. This will be 1 for the primary portal, 2 for secondary
float GetHalfWidth() Returns half of the width of the portal
float GetHalfHeight() Returns half of the height of the portal
bool IsMobile() Returns true if this is a movable portal
bool IsOpen() Returns true if this portal is open and possible to walk through

Select game

Loading games...