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 → Narrowing randomization
Narrowing randomization
2002-11-30, 6:11 PM #1
Ok, I'm making something that rains rocks down on enemies.

An example of the current situation is this:
Code:
                randVec = VectorSet((Rand()-0.5)*1, (Rand()-0.5)*1, 0.5);
                dis = FireProjectile(victim, projectile2, -1, -1, randVec, '-90 0 0', 0.0, 0, 0, 0);


Unfortunately, this puts the projectile within approximately one JKU of the victim, and I want to know how to get it within about one quarter JKU of the victim.

I'm seriously lost.
2002-11-30, 11:45 PM #2
VectorScale(randVec, 0.25); [http://forums.massassi.net/html/smile.gif]
-Hell Raiser
2002-12-01, 9:01 AM #3
Doh!

Thank you HR. -_-

↑ Up to the top!