math_vector is a point entity available with any version of Mapbase.

A math_counter variant that specializes in vector operations.



KeyValues

- Initial Value (startvalue) <vector>
The vector this entity should start with.

Flags

- [1] Disable X : 1
- [2] Disable Y : 2
- [4] Disable Z : 4

Inputs

- Add <vector>
Adds a vector to this entity's current value and fires the OutValue output with the result.
- Divide <vector>
Divides a vector from this entity's current value and fire the OutValue output with the result.
- Multiply <vector>
Multiplies a vector from this entity's current value and fires the OutValue output with the result.
- SetValue <vector>
Sets this entity's current vector to a new value and fires the OutValue output with the result.
- SetValueNoFire <vector>
Sets this entity's current vector to a new value without firing any outputs.
- Subtract <vector>
Subtracts a vector from this entity's current value and fires the OutValue output with the result.
- GetValue <void>
Causes this entity to fire its OnGetValue output with its current vector. Used for polling the counter when you don't want constant updates from the OutValue output.
- PointAtLocation <vector>
Creates an angle pointing from the entity's current vector to the specified point and fires the OutValue output with the result.
- PointAtEntity <target_destination>
Creates an angle pointing from the entity's current vector to the specified entity and fires the OutValue output with the result.
- Normalize <void>
Normalizes this entity's vector and fires the OutValue output with the result.
- NormalizeAngles <void>
Normalizes this entity's vector as angles and fires the OutValue output with the result.
- VectorAngles <void>
Converts this entity's vector to an angle, assuming the current vector is a direction vector. Fires the OutValue output with the result.
- AngleVectorForward <void>
Converts this entity's vector angles to a vector in the forward direction. Fires the OutValue output with the result.
- AngleVectorRight <void>
Converts this entity's vector angles to a vector in the right direction. Fires the OutValue output with the result.
- AngleVectorUp <void>
Converts this entity's vector angles to a vector in the up direction. Fires the OutValue output with the result.
- SetX <float>
Sets this entity's X coordinate.
- SetY <float>
Sets this entity's Y coordinate.
- SetZ <float>
Sets this entity's Z coordinate.
- GetX <void>
Gets this entity's X coordinate.
- GetY <void>
Gets this entity's Y coordinate.
- GetZ <void>
Gets this entity's Z coordinate.
- AddX <float>
Adds to this entity's X coordinate.
- AddY <float>
Adds to this entity's Y coordinate.
- AddZ <float>
Adds to this entity's Z coordinate.
- SubtractX <float>
Subtracts from this entity's X coordinate.
- SubtractY <float>
Subtracts from this entity's Y coordinate.
- SubtractZ <float>
Subtracts from this entity's Z coordinate.

Outputs

- OutValue <vector>
Fired when the value changes.
- OutX <float>
Fired when the value changes, passing the resulting X coordinate.
- OutY <float>
Fired when the value changes, passing the resulting Y coordinate.
- OutZ <float>
Fired when the value changes, passing the resulting Z coordinate.
- OnGetValue <vector>
Fired in response to the GetValue input. Used for polling this entity's current value when you don't want constant updates from the OutValue output.
- OnGetX <float>
Fired in response to the GetX input.
- OnGetY <float>
Fired in response to the GetY input.
- OnGetZ <float>
Fired in response to the GetZ input.