Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Reset
Old
pucu2
Guest
 
Status:
Posts: n/a
Question Reset - 09-10-2010, 05:51 PM

How do I make an object "reset" to its vehicle? I am just fooling around and trying to make a jet fire a rocket, but I don't know how to get the rocket back to the ship so I can fire again.
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow 09-10-2010, 07:21 PM

If the rocket is at the exact same place the jet is, then simply
<rocket> move to <jet> duration="<0> seconds"

If the rocket isn't just "moving," but also turning or rolling, then replace "move to" with "set point of view to". This also resets the orientation.

However, if you're rocket is not at the same place/orientations as the jet, then your best bet is to simply do the opposite.
Ex.: <rocket> move <forward> <100> m duration="<10> seconds"
<rocket> move <backward> <100> m duration="<0> seconds"


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
pucu2
Guest
 
Status:
Posts: n/a
Default 09-10-2010, 07:34 PM

would i be placing that in the fire method?
   
Reply With Quote
Yes.
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Arrow Yes. - 09-10-2010, 07:38 PM

Yeah. For this: <rocket> move to <jet> duration="<0> seconds" and it's "set point of view to" counterpart, simply drag it in right after the "move forward" that I assume you have in the fire method.
Think of "move to" and "set point of view to" as moving the rocket back (which is basically what it's doing).

For this:<rocket> move <forward> <100> m duration="<10> seconds"
<rocket> move <backward> <100> m duration="<0> seconds"
That would be your method. Simply substitute whatever your distances/durations are.


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Old
pucu2
Guest
 
Status:
Posts: n/a
Default 09-10-2010, 07:56 PM

works. thanks!
   
Reply With Quote
Old
debussybunny563
Senior Member
 
debussybunny563's Avatar
 
Status: Offline
Posts: 852
Join Date: May 2010
Smile 09-10-2010, 07:57 PM

Happy to help.

Good luck!


Last edited by debussybunny563; 12-21-2012 at 12:00 AM.

|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|

I have been dead for quite some time now; not much hope for resurrection.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.