Wired Eye Pod
From GMod Wiki
Wiremod Tool | Back |
Function: | Wired component that enables mouse control from a pod |
Primary fire: | Spawns/Updates a Wired Eye Pod Controller. |
Secondary fire: | Links the Eye Pod Controller to a pod. |
Reload: | No action |
Notes: | - |
Brief
Outputs a player's mouse X/Y movements if they are in a pod, and can be used to set the player's view direction.
Instructions
Placed using Primary fire. Primary fire on an eye pod controller to update its settings. Secondary fire to link the eye pod controller to a pod.
Inputs
- Enable: Switch to "1" to lock the player's view relative to the pod, and begin outputting mouse movement data.
- SetPitch: Sets the player's view angle pitch relative to the pod (in degrees).
- SetYaw: Sets the player's view angle yaw relative to the pod (in degrees).
- SetAngle: ANGLE data type, sets the player's view angle relative to the pod (in degrees). Roll is always 0.
- UnfreezePitch: Unfreezes the player's pitch.
- UnfreezeYaw: Unfreezes the player's yaw.
Outputs
- X: Horizontal mouse movement.
- Y: Vertical mouse movement.
- XY: VECTOR2 data type, combines X and Y mouse movements as a 2D vector.
Variables
- Default Outputs To Zero When Inactive: When a player is not in the pod, the X/Y outputs will default to 0 (this will be true anyway if "Output Cumulative Mouse Position" is not enabled).
- Output Cumulative Mouse Position: If this is not enabled, the X/Y outputs will show the mouse movement speed. If this is enabled, the outputs will show the mouse position.
- Clamp the Outputs: By setting min/max X/Y values, the X/Y outputs will be clamped between those values.