PDA

View Full Version : Hi! I return with a querry.


Edward
02-17-2005, 04:38 PM
Hi!
I return. Been doing other stuff... Anyway, I have a problem.
I'm trying to make an object fire grenades from its top, but it ain't working correctly. The object is a sequencer that attaches to all surfaces, and so I want grenades to jump out from "object top" as Bryce would put it. And also, at a slight randomidity to the objects X and Y.
((rand()*2.00000000)-1.00000000)/5

/Edward

Hell Raiser
02-18-2005, 04:55 AM
VectorAdd(GetThingUVec(Seq), GetThingPos(Seq)); will give you a position 1 JKU from the "top" of the 3do, no matter it's orientation. Also, you'd want to scale the UVec down if you don't want the position 1 JKU away. ;)