Prop portal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added Portal 2 stuff)
No edit summary
Line 16: Line 16:
{{IO|Fizzle|Fizzle and remove}}
{{IO|Fizzle|Fizzle and remove}}
{{IO|NewLocation|Sets this portals location and angles. This expects 6 floats with space delimiters, the format is 'x y z pitch yaw roll'|param=string}}
{{IO|NewLocation|Sets this portals location and angles. This expects 6 floats with space delimiters, the format is 'x y z pitch yaw roll'|param=string}}
{{IO|Resize|param=string|since=P2}}
{{IO|Resize|Changes the size of the portals. Note that portals only function if they are the same size.|param=string|since=P2}}
{{I Targetname}}
{{I Targetname}}



Revision as of 11:48, 13 May 2011

Template:Portal series point

Entity description

A prop representing one of the two portals.

Keyvalues

PortalTwo ([todo internal name (i)]) <boolean>
Is this portal an orange portal?
Activated ([todo internal name (i)]) <boolean>
Is this portal activated at start?
LinkageGroupID ([todo internal name (i)]) <interger>
Portal pair ID that it belongs to.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

SetName
Naming your portals is fun
SetActivatedState <booleanRedirectInput/boolean>
Set Activated
Fizzle
Fizzle and remove
NewLocation <stringRedirectInput/string>
Sets this portals location and angles. This expects 6 floats with space delimiters, the format is 'x y z pitch yaw roll'
Resize <stringRedirectInput/string> (in all games since Portal 2)
Changes the size of the portals. Note that portals only function if they are the same size.


Outputs

OnPlacedSuccessfully
Fired when portal spawns successfully