Difference between revisions of "Trigger setorigin"
(Import of converted entguide pages from Sven Manor.) |
Outerbeast (talk | contribs) m (→Issues) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
}} | }} | ||
− | Copies the position and orientation of one entity to another, providing several additional options for angles and relative rotation. Entities moved with this won't shove away any objects blocking them, but pass through them, blocking said objects instead. (This entity does set the origin, it does not perform movement of an entity) This entity has several inconsistencies in its design. Most of the time you are better off assembling the operation you require | + | Copies the position and orientation of one entity to another, providing several additional options for angles and relative rotation. Entities moved with this won't shove away any objects blocking them, but pass through them, blocking said objects instead. (This entity does set the origin, it does not perform movement of an entity) <br>This entity has several inconsistencies in its design. Most of the time you are better off assembling the operation you require using [[trigger_copyvalue]] with <code>origin</code> as source and destination values. |
== Keyvalues == | == Keyvalues == | ||
Line 33: | Line 33: | ||
If you are copying the origin/angles from or to a brush based entity, then that entity must have an origin brush attached to it. The center of that origin brush will be used as the origin of the entire brush entity. | If you are copying the origin/angles from or to a brush based entity, then that entity must have an origin brush attached to it. The center of that origin brush will be used as the origin of the entire brush entity. | ||
+ | == Issues == | ||
+ | When using "Constant" flag and the entity does not have a targetname, the entity will not automatically turn itself on. Use a [[trigger_auto]]. | ||
{{entity_title}} | {{entity_title}} |
Latest revision as of 13:54, 10 July 2023
trigger_setorigin | |
---|---|
Type |
point |
Status |
supported |
Copies the position and orientation of one entity to another, providing several additional options for angles and relative rotation. Entities moved with this won't shove away any objects blocking them, but pass through them, blocking said objects instead. (This entity does set the origin, it does not perform movement of an entity)
This entity has several inconsistencies in its design. Most of the time you are better off assembling the operation you require using trigger_copyvalue with origin
as source and destination values.
1 Keyvalues
Target : target
Name of the entity to attach to or move to the copy-pointer entity.
Copy Pointer : copypointer
The entity to copy coordinates/angles from.
Position Offset (X, Y, Z) : offset
Offset the target entity by this vector when "Offset Difference" is set.
Angle Offset (X, Y, Z) : angleoffset
Offsets the target entity's angles by this value when trigger_setorigin is first activated. Will only touch angles set to be copied as per spawnflags.
Invert X Angle : invert_x
Use inverted pitch for the target entity's orientation.
Invert Y Angle : invert_y
Use inverted yaw for the target entity's orientation.
Invert Z Angle : invert_z
Use inverted roll for the target entity's orientation.
2 Flags
1 : Constant
Always update the target's position and orientation.
4 : Set Once
Only update the target once and remove the trigger_setorigin from the game afterwards.
8 : Lock Offsets
Use the vector between the target and the copypointer plus the "Offset"-keyvalue as the offset vector.
16 : Copy X Angle
Copy the X angle of the copypointer.
32 : Copy Y Angle
Copy the Y angle of the copypointer.
64 : Copy Z Angle
Copy the Z angle of the copypointer.
128 : Copy X Axis
Copy the X axis of the copypointer.
256 : Copy Y Axis
Copy the Y axis of the copypointer.
512 : Copy Z Axis
Copy the Z axis of the copypointer.
1024 : Skip Initial Set
If set, the target entity will not be moved to the copypointer's origin before doing the offset difference calculation (set this unless you want the target entity stuck to the center of the
3 Notes
If you are copying the origin/angles from or to a brush based entity, then that entity must have an origin brush attached to it. The center of that origin brush will be used as the origin of the entire brush entity.
4 Issues
When using "Constant" flag and the entity does not have a targetname, the entity will not automatically turn itself on. Use a trigger_auto.