Prop portal: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Updated entity data style for consistency)
Line 1: Line 1:
{{portal series point|prop_portal}}
{{portal series point|prop_portal}}


==Entity Description==
==Entity description==
A prop representing one of the two portals.
A prop representing one of the two portals.


==Keyvalues==
==Keyvalues==
* {{KV Targetname}}
{{KV Targetname}}
* {{KV Angles}}
{{KV Angles}}
* '''PortalTwo'''
{{KV|PortalTwo|boolean|Is this portal an orange portal?}}
: {{boolean}} Is this portal an orange portal?
{{KV|Activated|boolean|Is this portal activated at start?}}
* '''Activated'''
{{KV|LinkageGroupID|interger|Portal pair ID that it belongs to.}}
: {{boolean}} Is this portal activated at start?
* '''LinkageGroupID'''
:<interger> Portal pair ID that it belongs to.


==Inputs==
==Inputs==
* {{I Targetname}}
{{I Targetname}}
* '''SetName'''
{{IO|SetName|Naming your portals is fun}}
:<string> Naming your portals is fun
{{IO|SetActivatedState|Set Activated|param=boolean}}
* '''SetActivatedState {{boolean}}'''
{{IO|Fizzle|Fizzle and remove}}
: Set Activated
{{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}}
* '''Fizzle'''
: Fizzle and remove
* '''NewLocation'''
:<string> Sets this portals location and angles. This expects 6 floats with space delimiters, the format is 'x y z pitch yaw roll'.


==Outputs==
==Outputs==
* {{O Targetname}}
{{O Targetname}}
* '''OnPlacedSuccessfully'''
{{IO|OnPlacedSuccessfully|Fired when portal spawns successfully}}
: Fired when portal spawns successfully

Revision as of 15:08, 3 May 2011

Template:Portal series point

Entity description

A prop representing one of the two portals.

Keyvalues

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.
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.

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'

Outputs

OnPlacedSuccessfully
Fired when portal spawns successfully