Tutorial: Pagan WilloWisps & other flying objects. - by ascottk
ascottk on 16/6/2005 at 21:09
Pagan WilloWispsby ascottk
(
http://www.ttlg.com/wiki/wikka.php?wakka=WilloWisps) wiki page
As this CustomAIFireElemental tutorial says the Pagan WilloWisps are elevators and it's true. These are found in:
Actor Classes>WorldObj>Moving>Elevator>MovingPaganWilloWisp1. Place one on your map
2. Choose how many Markers you'll need for the WilloWisp's path (the default scripts only allow for 2, 5, 7, 9). This will be important later.
[INDENT] a. A triggerscript named
WillowStart is already added but . . . [/INDENT]
3. Open the
Trigger Script Manager and locate the other scripts you'll need, these are found in:
Missions>PaganIntro>PaganWilloWisps4.
Add Willow1from5 (if you chose 5 markers) to your WilloWisp which is tricky because the actor itself is very small and the light & emitter attachments get in the way. Just hit the I key if you want to hide those sprites from your view.
This script is absolutely necessary because it tells the willow where to go after it reaches the last
ElevatorMarker. I didn't do this step and the map would not compile. The error log was something along the lines of: Willo has a starting point but no destination.
5. Now add
Willow1 through Willow56. Next we to need to
Drop Waypoint Marker(s). You need to right-click on a static mesh or the WilloWisp itself. If you click anywhere else the Drop Waypoint Maker in the right-click menu will not show. Add five of those.
7. Now the markers are in place we need to tell the WilloWisp how to use those markers.
8. Right-click the
Create links button (The two red balls connected with a black line on the left of the editor and choose
ElevatorFloorMarker.
9. Highlight the WilloWisp then shift-click on the Waypoint markers (it doesn't matter which order you click them). You should now see red lines pointing away from the WilloWisp onto your Waypoint markers. Each of these lines will have the words
ELEVATORFLOORMARKERLINK on them.
10. Now highlight, right-click & go into the Actor Links of the Waypoint marker for the Willow's first destination. There should be a WaypointMarker__# (#=whichever number of the marker) as the source, MovingPaganWilloWisp__# as the destination, and ElevatorFloorMarker as the Flavor. Edit that link, go into Properties>Link and type in 1 (as in number one) next to the
m_name.
11. Do the last step for each marker in whichever order you want until you get to 5.
12. Double check to see if you did that correctly. Highlight the MovingPaganWilloWisp and you should see that each link has each number after its name. It should look like
ELEVATORFLOORMARKERLINK:1 all the way through
ELEVATORFLOORMARKERLINK:5.
13. Compile, Save, and test!
Gestalt on 16/6/2005 at 21:33
Thanks! This should come in handy.
ascottk on 17/6/2005 at 00:44
I managed to make a paper float! No, it's not paper mixed with ice cream but giving "lift" to other things. You need a functional Willow using the above tutorial.
1) First I Added a MovingPaganWilloWisp to my map.
2) Changed the object mesh to another static mesh from Properties>Render>ObjectMesh. In this case I changed it to GENiGOODSpaper.
3) While in properties turn the ElevatorCrushStim to none (I managed to get damaged by floating paper).
4) Add Book>blsBook=true & Book>BookFileName=any *.sch file
5) Add Frob>FrobBias=16 & Highlight>HighlightDist=128
Bugs:
The book doesn't display properly when it's frobbed. The text was scrunched up on the left & the page graphics weren't there. Hmmm . . .
Alternate Method:
Use a rigid attachment link from MovingPaganWilloWisp to the object you want to control (not a link from the object to the MovingPaganWilloWisp or it won't work). Then you delete the PaganGas emitter & turn bLightOn to false. You probably need to follow (
http://www.ttlg.com/wiki/wikka.php?wakka=AddingHavokPhysics) this tutorial in order to control the object.
I did manage to fly an AI with the alternate method but it always crashes to the desktop. I think the Willow rotates when it reached a certain waypoint.
screenshots:
(
http://img101.echo.cx/my.php?image=t3paperfloatlow2nm.jpg)
Inline Image:
http://img101.echo.cx/img101/3979/t3paperfloatlow2nm.th.jpg(
http://img101.echo.cx/my.php?image=t3paperfloahigh4jk.jpg)
Inline Image:
http://img101.echo.cx/img101/5320/t3paperfloahigh4jk.th.jpg