Ok, lets say you've got some cool space ship model, or maybe it's a giant UFO with a large flower sticking out of it, whatever, but you want it to zoom around your sky. What you need is to make a custom flyer dome, despite how it sounds, no new modeling is needed, if it's a mesh, you can make it fly.
In this example, the mesh we are trying to make fly is called: orep_fly_hammer_dome.msh though what it's called doesn't matter of course.
1. First, you need a custom side to put the flying thing in.
If you don't have one, you'll need to make one, it doesn't need it's own side, though, you can add it to any custom side you may have.
Do so, by adding the msh file of the model, and all it's tgas' to your side's Msh folder.
You may also, if you want, make a .msh.option file, with the line
Code: Select all
-nocollision
2. Then your dome model will need a .req, however it's slightly different then unit .reqs
Where unit reqs look like this:
Yours will need to look like this:ucft
{
REQN
{
"class"
"orep_inf_rifleman"
}
}
The req and the related text inside should bear the name of the msh of the model.ucft
{
REQN
{
"model"
"orep_fly_hammer_dome"
}
}
3. Next we have to load it into the Lua.
So in the ReadDataFile section of your lua, add in the Msh name into the line up:
ReadDataFile("dc:SIDE\\orep.lvl",
"orep_inf_rifleman",
"orep_inf_rocketeer",
"orep_inf_sniper",
"orep_inf_engineer",
"orep_inf_officer",
"orep_inf_merc",
"orep_knight_09",
"orep_fly_hammer_dome")
4. Finally the sky file.
Go to: Data_ABC/Worlds/ABC/World1 and locate your ABC.sky file, it is a notepad file.
Open it
You will need to add to it a flyer dome code, you can get this from any shipped world's sky file, that has flyer domes, like mygeeto, or kashyyyk.
Here is the one I used.
Just ensure that the name in the Geometry section is the name of your flying msh.SkyObject()
{
Geometry("orep_fly_hammer_dome");
NumObjects(4);
Height(90, 140);
VelocityZ(-3, 3);
VelocityY(3, 3);
Distance(350);
InDirectionFactor(0.5);
}
With the code I used, they fly sideways, but I slowed it down, so it's barely noticeable, You can tweak the code you put in the sky file, however to change how they move and at what speed.
Note: Modelers, if you make something for the purpose of it being in a flyer dome, it May help if it faces the Z axis. I don't know for sure, but it might.