calc_vecfromnums

A calc_vecfromnums makes a vector out of three numbers, or takes a vector and replaces some of its parts with
numbers, and hands the result to the entity that asks for it. A key that takes a position reads the same three numbers
as a point on the map.
Triggering it does nothing. Instead, you put its name in a key that takes a vector or a position, marked [LV] or
[LP] in the editor, and each time that key needs one, the calc_vecfromnums works it out again at that moment.
See the Locus guide for more details and some setups.
Attributes
targetnameSets the name you put in another entity's vector or position key so it reads this one. See Common keys.
base_vectorSets the vector to start from, and Base vector is sets how it is read. You can use three numbers such as 0 0 100, or the name of an entity. With *locus or !activator, it uses the entity that started the chain of triggers.
If you leave this key empty, the vector starts as 0 0 0.
vector_typeSets how Base vector is read.
- Velocity (0) - As a locus vector, so an entity name gives that entity's velocity
- Position (1) - As a locus position, so an entity name gives that entity's position
- Color (2) - As a color, so an entity name gives that entity's FX Color
Velocity (0)x_valueReplaces the X part of the vector with a locus number.
If you leave this key empty, the X part of Base vector stays.
y_valueReplaces the Y part of the vector with a locus number.
If you leave this key empty, the Y part of Base vector stays.
z_valueReplaces the Z part of the vector with a locus number.
If you leave this key empty, the Z part of Base vector stays.
Notes
- If Base vector or one of the numbers gives no value, the
calc_vecfromnumsgives no vector, so the entity that asked does nothing that time
See also
- Locus guide - how entities pass positions and numbers to each other
- calc_ entities guide - setups that chain
calc_entities calc_numfromvec- takes one number out of a vectorcalc_velocity_polar- turns a vector and changes its length- Locus system - every locus rule, and the keys that take a vector
Changes since 1.38
calc_vecfromnumsis new in SBO 2.0.0
