This article's documentation is for anything that uses the Source engine. Click here for more information.

Func instance origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{portal2 point|func_instance_origin|internal=1}} == Entity description == This is the center of the instance for rotation. Useful to avoid moving everything inside an instance …')
 
mNo edit summary
 
(12 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{portal2 point|func_instance_origin|internal=1}}
{{obsolete|entity=1}}
{{messagebox|text=This entity is fixed in {{slamminsrc|4}}}}
{{this is a|point entity|internal=1|name=func_instance_origin|engine=Source|since=Portal 2}} The entity is supposed to set the center of an instance for placement and rotation, but it appears to have only been partially implemented. The entity will affect the positioning of the instance in Hammer, but the bounding box isn't updated to match, and it has no effect in the compiled map; the instance will be placed with the center of the VMF as the origin as usual.


== Entity description ==
{{Internal entity note}}
This is the center of the instance for rotation. Useful to avoid moving everything inside an instance in order to change the origin point. It is used by Hammer only.
{{todo|VBSP ''is'' if fact processing and removing the entity (as indicated by the lack of any unknown entity errors in-game), but doesn't seem to actually be doing anything with it. Maybe the entity can be made to work somehow?}}
 
{{func point ent}}
{{intent}}


==See also==
==See also==
Line 10: Line 11:
*[[func_instance_parms]] - Entity to control parameters within instances.
*[[func_instance_parms]] - Entity to control parameters within instances.
*[[func_instance_io_proxy]] - Entity that is used as a proxy for entity I/O within instances.
*[[func_instance_io_proxy]] - Entity that is used as a proxy for entity I/O within instances.
*[[L4D2 Level Design/VMF Instances]] - A tutorial on how to use this entity in Left 4 Dead 2.
 
[[Category:Instances|origin]]

Latest revision as of 03:49, 9 March 2025

Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

func_instance_origin is an internal point entity available in all Source Source games since Portal 2 Portal 2. The entity is supposed to set the center of an instance for placement and rotation, but it appears to have only been partially implemented. The entity will affect the positioning of the instance in Hammer, but the bounding box isn't updated to match, and it has no effect in the compiled map; the instance will be placed with the center of the VMF as the origin as usual.

Note.pngNote:This is an internal entity. When the map is compiled by VBSP, it is processed and then removed; it does not exist when the map is running.
Todo: VBSP is if fact processing and removing the entity (as indicated by the lack of any unknown entity errors in-game), but doesn't seem to actually be doing anything with it. Maybe the entity can be made to work somehow?
Warning.pngRisk of Confusion:This is a point entity despite the name starting with func_ (which is usually used for brush entities).

See also