Wings
- Details
- Parent Category: Ultimate Change Link
- Created on Saturday, 07 May 2011 12:36
- Last Updated on Wednesday, 11 September 2013 14:40
- Published on Saturday, 07 May 2011 12:36
- Written by sandrine
- Hits: 193
In this example we animate wings
Setup step
First create wings :

There are 2 linked prims for the 2 wings and a prim root (here the invisible ball).
Drop the script "chlid" in each wing.
Drop the scripts :
- setup manager
- setup pos
- setup rot
in the root prim.
Clic on wings, you get this menu :

It's a good idea to put a prim tu visualize the axis :

Put wings in first pos and rot and click on button "Add". You get this menu :

You can see there is now a frame (Frame 1/1) and new buttons. Put wing in new position/rotation :

Click again on button "Add". You get this menu :

You can see there are now 2 frames (Frame 2/2). Continue to add frames... For example i created 6 frames :

You can browse frames with buttons "Previous", "Next", "First" :

You now the current frame with the text menu : "Frame 5/6". First number is the current frame and second number total frames number.
You can also play all frames with button "Play". You get a new menu to control speed :

Click on stop to get back the main menu.
You can change a frame and save new position and rotation with button "Save".
You can insert a new frame before he current frame with button "Ins".
You can delete the current frame with button "Del".
When all is good click on tha button "Dump move". You get informations in chat :

Copy and paste them in a notecard called "configmove" :

You can clean text for no needed informations. At least click on "End Setup" button to del all setup scripts.
Action step
Now drop in root prim :
- notecard "configmove" that you just created
- script "move pos"
- script "move rot"
- script "trigger walk_fly_run_sit"

Wait for scripts to load notecard.
Now you must change parameters in script "trigger walk_fly_run_sit" to make it work as you want. Open the script with a double click on its name :

You cas see there are many parameters all full commented for all situations.
We want movement to start on fly so this parameter must be TRUE :
integer START_FLY = TRUE; // Start on fly
We want movement to stop when no fly so this parameter must be TRUE :
integer STOP_NO_FLY = TRUE; // Stop on no fly
Dont change other parameters. Keep default values.
When you save the script "trigger walk_fly_run_sit" you start again reading notecard for scripts "move pos" and "move rot", because inventory has changed. Wait for end of reading.
All is good now. You can enjoy your wings :

The wing beats when you fly and stop when you dont...
