Edit: Oops, move to Scripting.
Is there a way to mix floats with variables? I keep getting a "must be a constant expression" error.
Example:
Code:
float stuff[3] = { 48.0, 48.0, 40.0 };
float moreStuff[3] = { 8.0, 4.0, 1.0 };
SetEntPropVector(i, Prop_Send, "m_vecMins", { stuff[0], moreStuff[1], stuff[2] } );
I know I can do it like this, but it doubles my code size.
Code:
float stuff[3] = { 48.0, 48.0, 40.0 };
float moreStuff[3] = { 8.0, 4.0, 1.0 };
float com[3];
com[0] = stuff[0];
com[1] = moreStuff[1];
com[2] = stuff[2]);
SetEntPropVector(i, Prop_Send, "m_vecMins", com);