avizzle Posted January 6, 2018 Share Posted January 6, 2018 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! Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 6, 2018 Share Posted January 6, 2018 http://forums.odforce.net/topic/32301-why-does-this-simple-line-errors-out/?tab=comments#comment-178037 Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted January 6, 2018 Share Posted January 6, 2018 v@force = set(0,dist,0); Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 6, 2018 Share Posted January 6, 2018 you must be my long lost evil twin Jesper !!! Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted January 6, 2018 Share Posted January 6, 2018 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? Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted January 6, 2018 Share Posted January 6, 2018 btw my new life goal is -everything you do, I do in vex Quote Link to comment Share on other sites More sharing options...
Noobini Posted January 7, 2018 Share Posted January 7, 2018 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 !!! Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted January 7, 2018 Share Posted January 7, 2018 (edited) 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 January 7, 2018 by Jesper Rahlff Quote Link to comment Share on other sites More sharing options...
avizzle Posted January 7, 2018 Author Share Posted January 7, 2018 Thanks to both of you. Quote Link to comment Share on other sites More sharing options...
Jesper Rahlff Posted January 7, 2018 Share Posted January 7, 2018 47 minutes ago, avizzle said: Thanks to both of you. no problem mate. Hope it helped. Let me know if you have any other questions Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.