Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Quick question on vectors
Quick question on vectors
2004-04-10, 7:54 AM #1
Can vectors have an initialization value? I mean, apparently it can 'cause GBK's cog and Dsettahr's cog have initial values. This is what I mean...
Code:
symbols
vector    vec=(0/0/0)
end

Is this valid code? I'm only asking because Parsec says "no, they can't have intial values."

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-04-11, 1:44 AM #2
Not if the initialized values are local. If they are passed to JED, and JED puts them in the JKL, they will work.


If its a weapon cog, just leave them undefined in the symbols, and set the values in Startup...

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
And when the moment is right, I'm gonna fly a kite.
2004-04-11, 8:54 AM #3
Thanks for clearing that up. [http://forums.massassi.net/html/smile.gif]

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-04-11, 1:17 PM #4
I'm glad you raised this issue actually, Slaw, because I'd been wondering the same for some time now, but I've been too lazy/haven't had the time, to try and fix it [http://forums.massassi.net/html/frown.gif]. Kudos to GBK [http://forums.massassi.net/html/smile.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!