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 → Strange vector position
Strange vector position
2002-09-21, 3:33 PM #1
Hey,

I have been racking my brain over a way to get a world position vector directly to the right of a thing's look vector, and I have as yet been unable to do it. Does anyone have any ideas?

------------------
His pot is blacker than his kettle!

Phoenix Swords
"And lo, let us open up into the holy book of Proxy2..." -genk
His pot is blacker than his kettle!
2002-09-22, 12:51 AM #2
Fire a projectile from the thing with a timer.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2002-09-22, 11:49 AM #3
Simple. [http://forums.massassi.net/html/smile.gif]
Code:
VectorAdd(GetThingPos(player), VectorScale(GetThingRVec(player), yourDist));

That will return a position that's yourDist JKUs from the right of the player.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!