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 → FireProjectile()
FireProjectile()
2000-11-24, 11:02 AM #1
Is it possible to have a COG which fires a projectile from a position other than Kyle, eg a laser projector at a predefined target, like the chain lightning in MOTS where you lock on, but in JK?

------------------
You were right about one thing master, the negotiators were short
http://jaggedconscience.serveftp.com/

Jagged Conscience
2000-11-26, 7:05 AM #2
http://www.code-alliance.com/~editors/jediknight/docs/jk_specs/cog_weapon.htm#FireProjectile

Just replace the thing that is firing with what you want to fire it.
KOP_blujay
Just dancin'...and singin'...in the Force.
2000-11-26, 9:14 PM #3
Thanx, but I don't know the unknown flags and JK automatically fires in the direction the thing is facing, so I'd need to either alter the way it is facing or get it to work out the vector which would be mega-complicated.

------------------
You were right about one thing master, the negotiators were short
http://jaggedconscience.serveftp.com/

Jagged Conscience
2000-11-27, 9:06 AM #4
Just look at the stormtrooper cog or something for the unknown variables. Also, you could place a ghost object right in front of the object you want the projectile to come out of, then change the FireProjectile() line so the first param is the ghost, not the other object. To find angles like pitch and stuff for the ghost, I recommend using something like a rail det projectile, and adjusting x/y/z and pitch/yaw/roll, then changing the item type from the projectile to a ghost.. that way you can get directions easier.

-Jipe
2000-11-27, 9:21 AM #5
Thanx, I'll try that

------------------
You were right about one thing master, the negotiators were short
http://jaggedconscience.serveftp.com/

Jagged Conscience
2000-11-27, 10:33 AM #6
You may also want to look at the '00_lightning.cog' from Canyon Oasis. This creates the lighting trap, using fireprojectile().

Cheers...

Raynar


------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis

↑ Up to the top!