Page 1 of 1
Fake ships in sky? [Solved]
Posted: Sun Apr 26, 2015 9:42 pm
by jojo3450
How can I add fake ships in the sky I think they are called domes
I want Acclamators in the sky I think they were some in a tatoonine map
Re: fake ships in sky
Posted: Sun Apr 26, 2015 9:57 pm
by jedimoose32
Follow that tutorial except you won't need to actually
make your own flyer dome, there is already one called rep_fly_assault_dome so just use that one.
Re: fake ships in sky
Posted: Sun Apr 26, 2015 10:04 pm
by Noobasaurus
Alternatively (or maybe it's the same, I didn't check), stick these lines from tat2.sky in your sky file:
You'll need to copy over the files referenced here from the tat folder as well.
If you see something you like in a stock map, you can always check out its files to see how to do it.
Re: fake ships in sky
Posted: Sun Apr 26, 2015 11:01 pm
by AnthonyBF2
You also need to call the domes from SIDE .lvl files in your map script, I think.
Re: fake ships in sky
Posted: Sun Apr 26, 2015 11:17 pm
by jojo3450
So I did it and it worked but can I do something like in the "Mos Eisley spaceport" map and make ships land and take off?
Re: fake ships in sky
Posted: Sun Apr 26, 2015 11:36 pm
by Noobasaurus
To do that, you'll need to set up spaceship objects in zeroeditor and give them animations to takeoff and land.
Re: fake ships in sky
Posted: Sun Apr 26, 2015 11:37 pm
by jojo3450
is there a tutorial that you can refer me to?
Re: fake ships in sky
Posted: Sun Apr 26, 2015 11:51 pm
by Noobasaurus
There's this one on animation,but you'll need to make the animation for the taking off and landing sequence and then use timers in your lua to have them occur at timed intervals.
Sample:
Code: Select all
takeoff = 0
test = OnTimerElapse(
function(timer)
if takeoff == 0 then
PlayAnimation("takeoff")
takeoff = 1
elseif takeoff == 1 then
PlayAnimation("land")
takeoff = 0
end
SetTimerValue(testTimer, 60)
StartTimer(testTimer)
end,
testTimer
)
You could probably use RewindAnimation depending on what you animation looks like.
Re: fake ships in sky
Posted: Mon Apr 27, 2015 12:24 am
by jojo3450
thanks it worked
