Jump to content
avizzle

Float into vector (basic)

Recommended Posts

I know this must be pretty basic, but for some reason, I can't figure out how to do this.  I'd like to be able to alter one of the values of a vector using a float variable, like this:

float dist = length(@P);
v@force = {0, dist, 0};

To me, this seems like it should work, but always returns a syntax error.  Any tips?

Thanks!

Share this post


Link to post
Share on other sites
2 minutes ago, Noobini said:

you must be my long lost evil twin Jesper !!!

you beat me to it again. How are you so fast at responding? :P 

Share this post


Link to post
Share on other sites

not fast enough to some....what...nobody got any clue ? but I posted my demand...i mean question...5 mins ago....still no responses ? I'm a busy person...gimme answers now !!!

Share this post


Link to post
Share on other sites
8 minutes ago, Noobini said:

not fast enough to some....what...nobody got any clue ? but I posted my demand...i mean question...5 mins ago....still no responses ? I'm a busy person...gimme answers now !!!

for (i=0; question<annoying; question++)

{

     if (@answer == 0)

     {

     i@study == 1;

     i@failure = 1;

     i@levelup = 1;

 

    }

continue;

}

Edited by Jesper Rahlff

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×