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 → Firing something at a position
Firing something at a position
2001-09-17, 6:24 AM #1
I want to fire a projectile from the local player so he'll be the parent of the proj. But, I need the proj to appear at the vector location of a thing. What's the easiest way to do that?

------------------
Fiction must be more realistic than truth or no one will believe it.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-09-17, 9:20 AM #2
Um...
Code:
SetThingLook(player,GetThingPos(ghost thing));
FireProjectile(blahblahblah);
Hey, I'm here! But who cares?
2001-09-17, 11:59 PM #3
Umm I think this is what he means ...

FireProjectile(blabla);
SetThingPos(projectile, GetThingPos(thing));
2001-09-18, 11:54 AM #4
You might want to use:

TeleportThing(projectile, thing);

only because I've seen SetThingPos() do odd stuff like...

If your in the same sector at the 'Pos' you wont be able to see your projectile until your leave that sector.

Not positive though.
- Wisdom is 99% experience, 1% knowledge. -
2001-09-18, 12:05 PM #5
Yeah, that's what I meant, Seifer, but SetThingPos() doesn't work.

I think I have that problem, New Guy. I never did see the proj, but I was testing in a large sector.

Anyways, I'll go try TeleportThing(). Thanks [http://forums.massassi.net/html/wink.gif]

------------------
Fiction must be more realistic than truth or no one will believe it.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!