pub struct GitTrigger {Show 13 fields
pub template_resref: ResRef,
pub linked_to_module: ResRef,
pub transition_destination: GffLocalizedString,
pub linked_to: String,
pub linked_to_flags: u8,
pub x_position: f32,
pub y_position: f32,
pub z_position: f32,
pub x_orientation: f32,
pub y_orientation: f32,
pub z_orientation: f32,
pub geometry: Vec<GitTriggerPoint>,
pub object_id: ObjectId,
}Expand description
A trigger instance placed in the area (struct type 1).
Triggers carry geometry (vertex polygon) and optional area-transition
fields (LinkedToModule, LinkedTo, LinkedToFlags,
TransitionDestination).
§Tag is dead here, and deliberately unmodelled
Every trigger placement that carries a Tag carries a real value, and the
engine does not read it at this path: a templated trigger takes its tag
from the .utt blueprint, with no overlay from the placement. Same
situation as GitDoor, and the same trap. Setting it on a placement
looks like renaming that trigger and changes nothing.
Fields§
§template_resref: ResRefTemplate resref (TemplateResRef).
linked_to_module: ResRefLinked module resref (LinkedToModule). Area transition target.
transition_destination: GffLocalizedStringTransition destination text (TransitionDestin, truncated from
TransitionDestination by the 16-byte GFF label limit).
linked_to: StringLinked-to tag (LinkedTo). Waypoint tag in the target module.
linked_to_flags: u8Linked-to flags (LinkedToFlags).
x_position: f32X position (XPosition).
y_position: f32Y position (YPosition).
z_position: f32Z position (ZPosition).
x_orientation: f32X orientation (XOrientation).
Every trigger in a retail install leaves the three orientation fields
at zero, which is why they went unnoticed while the other object types
got theirs. A trigger’s shape comes from Self::geometry, so
rotating one is not something vanilla content ever needed. That says
nothing about a mod that does.
y_orientation: f32Y orientation (YOrientation).
z_orientation: f32Z orientation (ZOrientation).
geometry: Vec<GitTriggerPoint>Geometry polygon vertices (Geometry).
object_id: ObjectIdRuntime object ID (ObjectId). Save-game only.
Trait Implementations§
Source§impl Clone for GitTrigger
impl Clone for GitTrigger
Source§fn clone(&self) -> GitTrigger
fn clone(&self) -> GitTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitTrigger
impl Debug for GitTrigger
Source§impl Default for GitTrigger
impl Default for GitTrigger
Source§impl PartialEq for GitTrigger
impl PartialEq for GitTrigger
Source§fn eq(&self, other: &GitTrigger) -> bool
fn eq(&self, other: &GitTrigger) -> bool
self and other values to be equal, and is used by ==.