Difference between revisions of "Func instance origin"

From Valve Developer Community
Jump to: navigation, search
m (strange typo)
(This doesn't seem to actually work)
Line 1: Line 1:
{{portal2 point|func_instance_origin|internal=1}} It defines the center of an instance for placement and rotation. By default if no func_instance_origin is placed, the center is the map origin (0,0,0). Therefore placing a func_instance_origin is useful to avoid moving everything inside an instance in order to change the origin point. It is used by Hammer and VBSP only.
+
{{base point|func_instance_origin|since=Portal 2|internal=1}} 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.
  
 
{{intent}}
 
{{intent}}
 +
{{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?}}
  
 
==See also==
 
==See also==
Line 7: Line 8:
 
*[[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]]
 
[[Category:Instances|origin]]

Revision as of 20:27, 11 May 2021

func_instance_origin is a internal point entity available in all 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.png Note: 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.

To do: 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?

See also