Func instance: Difference between revisions
Jump to navigation
Jump to search
RabidMonkey (talk | contribs) mNo edit summary |
MossyBucket (talk | contribs) (Linked to parms, and *speculating* about where it works. (Doesn't work in-game in HL 2: Episode 1.)) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=func_instance}} | {{wrongtitle|title=func_instance}} | ||
'''func_instance''' is a point entity found in all Source games for placing an instance of another map file. You may translate and rotate this entity. You can use the replace keys to do parameter changes on the instance contents. In a $ at the beginning of a variable name. Then just use the $variable name inside of the instance contents on any value portion of a key/value pair. | '''func_instance''' is a point entity used by the L4D2 engine (though found and working in the Hammer editor for all Source games) for placing an instance of another map file. You may translate and rotate this entity. You can use the replace keys to do parameter changes on the instance contents. In a $ at the beginning of a variable name. Then just use the $variable name inside of the instance contents on any value portion of a key/value pair. | ||
{{intent}} | {{intent}} | ||
Line 28: | Line 28: | ||
==See also== | ==See also== | ||
[[L4D2 Level Design/VMF Instances]] | *[[func_instance_parms]] - An entity that can be used with this entity. | ||
*[[L4D2 Level Design/VMF Instances]] - a tutorial on how to use this entity. | |||
==External links== | ==External links== | ||
[[category:Left 4 Dead 2]] | [[category:Left 4 Dead 2]] | ||
[[category:Left 4 Dead 2 Entities]] | [[category:Left 4 Dead 2 Entities]] |
Revision as of 13:22, 12 February 2011
Template:Wrongtitle func_instance is a point entity used by the L4D2 engine (though found and working in the Hammer editor for all Source games) for placing an instance of another map file. You may translate and rotate this entity. You can use the replace keys to do parameter changes on the instance contents. In a $ at the beginning of a variable name. Then just use the $variable name inside of the instance contents on any value portion of a key/value pair.
KeyValues
- 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.
- targetname:
- Fix Up Name
<target_source>
- The name that all entities will be fixed up with based upon the fix up style.
- file:
- VMF Filename
<instance_file>
- This indicates a map file relative to the map's file name.
- fixup_style:
- Entity Name Fix Up
<choices>
- Fixup style for instanced entity names. Uses the 'Fix Up Name' field.
- None
- Postfix
- Prefix (Default)
- replace01-10:
- Replace
<instance_variable>
- This is a replacement parameter. It goes in the form of $variable value. All entities inside of that instance that have $variable somewhere will be replaced with the value contents. Example: $color 255 0 0
See also
- func_instance_parms - An entity that can be used with this entity.
- L4D2 Level Design/VMF Instances - a tutorial on how to use this entity.