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 → Set pitch/orientation of objects. How?
Set pitch/orientation of objects. How?
2002-01-09, 11:16 PM #1
I have a projectile. When I fire it, it is oriented like my head pitch and this is correct. How can I have the same effect on an item? This item is the result of the explosion of the projectile and I have to set its orientation inside a pulse message.

------------------
"May the SourceCode be with you..."
Nemios, MOD developer.
"May the SourceCode be with you..."
Nemios, MOD developer.
2002-01-10, 12:18 PM #2
Errr ... explain a little further ...
2002-01-10, 8:52 PM #3
Ok, let's say I have 3do for a projectile that is a disk. In the template definition theres something like orientation=(0,0,0). When I fire that projectile 45° up the orientation is at 45°. When the projectile explodes an item is created, which is the same 3do but this new object is at 0° (i.e. parallel with the world ground). How can I give the item the same orientation of the projectile (difficult, since that is destroyed a moment before the item is created, I think) or of my head (head pitch)?

------------------
"May the SourceCode be with you..."
Nemios, MOD developer.
"May the SourceCode be with you..."
Nemios, MOD developer.
2002-01-11, 9:30 AM #4
Well, add the removed: message to your projectile cog, and create the pickup item in there. You can then set the orientation of the pickup by using SetThingLook(PickupItem, GetThingLVec(GetSenderRef()));

[edit] Rasa-fraggin )'s man, I'm not used to typin in stuff in this itty bitty text box. [http://forums.massassi.net/html/biggrin.gif] [/edit]

------------------
-Hell Raiser
Cogging type person that does, umm, stuff?
"Free, your, mind."
DBZ: TDIR has a new home!

[This message has been edited by Hell Raiser (edited January 11, 2002).]
-Hell Raiser

↑ Up to the top!