vect( X, Y, Z) won't take expressions

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

tarquin

design is flawed
Oct 11, 2000
3,945
0
36
UK
www.planetunreal.com
why can't I set vector values with expressions?
eg::
myVector = vect( cos( theta), breadth, height )
this gives:
Error, Missing X component of vector

I've got around the problem by calling function below when I want to set vectors, but I don't understand why it only takes numerical values.

Code:
function vector eVect( float x , float y , float z )
{
local vector v ;
v.x = x ;
v.y = y ;
v.z = z ;
return v ;
}