Hey me again
Is it possible to let LA-AT's fly alone when all passsenger slots are full?
MY Idea: You start at a Venator, enter the LA-AT and when its full, it starts... Fly to the planet an Land, then it only a prop. Venator Commandpost dissapear, and only at the Landingzones are CP's. But without a Pilot.(if neccsesary its ok when a pilot is there)
Possible or not?
Thanks in advice!
No, not really, this sint wat i mean... with Flyersplines I cannot say they have to land there.
Darth D.U.C.K told me, i have to use turrets, because the playermodel cannot enter a prop.
But Thank you for help.
Re: can Flyers(like LA-AT's) fly alone?
Posted: Wed Oct 13, 2010 2:42 pm
by Eggman
CT-26-6958_Hevy wrote:No, not really, this sint wat i mean... with Flyersplines I cannot say they have to land there.
Darth D.U.C.K told me, i have to use turrets, because the playermodel cannot enter a prop.
But Thank you for help.
Correct. You set the gunship up as a turret, place it in ZE, and use ZE's animation mode to set it along whatever flight path you want (if you aren't familiar with how to do this, read through the procedural animation doc that came with the mod tools).
Re: can Flyers(like LA-AT's) fly alone?
Posted: Wed Oct 13, 2010 2:49 pm
by CT-26-6958_Hevy
Can i say, the Anim have to start after (for example) 1 minute and not directly when starting the map?
Re: can Flyers(like LA-AT's) fly alone?
Posted: Wed Oct 13, 2010 3:43 pm
by Darth_Spiderpig
CT-26-6958_Hevy wrote:Can i say, the Anim have to start after (for example) 1 minute and not directly when starting the map?
You can, just need to be careful with the timing.
Re: can Flyers(like LA-AT's) fly alone?
Posted: Wed Oct 13, 2010 3:46 pm
by CT-26-6958_Hevy
Got it...
Maybe i can Force all Units in LA-AT's till they filled up, and the rest spawn at the ground(when the laats landed)?
Re: can Flyers(like LA-AT's) fly alone?
Posted: Wed Oct 13, 2010 4:41 pm
by Eggman
Darth_Spiderpig wrote:
CT-26-6958_Hevy wrote:Can i say, the Anim have to start after (for example) 1 minute and not directly when starting the map?
You can, just need to be careful with the timing.
When you set up the animation in ZE, there will be a tab that, when selected, has the animation play as soon as the mission starts. If unselected, you can use the awesome power of .lua scripting to tell the animation when to start (also explained in the docs - you can tie an animation to any variety of events that tell it when to start, stop, rewind, and so on).
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 5:50 am
by CT-26-6958_Hevy
I followed Java_Killers tutorial, but it doesnt work.
in ZeroEditor all wokred, i've seen my animation, but ingame my laat just stand in the air and do nothing...
And a screen of my animationoptions in Zeroeditor:
Hidden/Spoiler:
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 7:16 am
by Darth_Spiderpig
Have you saved your animations in ZE?
Like the tab above the group settings? (top right)
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 7:39 am
by CT-26-6958_Hevy
Yes, After klicked on Save Anim, a new Window appears:"Your ANM.... "
Do i have to do something after that? I munged and started teh testmap.
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 8:26 am
by Darth_Spiderpig
You saved your map too?
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 8:35 am
by CT-26-6958_Hevy
Yes sure... i opened my map over and over again, checked saved and munged again...
Really no other idea?
Re: can Flyers(like LA-AT's) fly alone?
Posted: Thu Oct 14, 2010 10:15 pm
by jangoisbaddest
Since you want the animation to be specifically timed, and since the play when level begins option doesn't seem to be working for you, I'd go with using the LUA to start your animation. Use this function in an OnTimerElapse callback (or on level start if you like):
PlayAnimationFromTo(“Animation Group Name”, beginTime, endTime)
There are many animation functions, but I recommend this one because it is very straightforward and it takes care of everything with one line of code. Much more info about how to use the LUA to manipulate your ZE animations can be found in:
procedural animation mode.doc
in your documentation folder.
EDIT: I see that the run time on your animation is 5. When you select "play when level begins", it doesn't wait for you to spawn. So the issue here is likely that you can't spawn and locate the object in question before the animation plays out, and you are merely seeing it in its final position. Try looping before messing with the LUA.
Re: can Flyers(like LA-AT's) fly alone?
Posted: Fri Oct 15, 2010 2:59 am
by CT-26-6958_Hevy
jangoisbaddest wrote:
EDIT: I see that the run time on your animation is 5. When you select "play when level begins", it doesn't wait for you to spawn. So the issue here is likely that you can't spawn and locate the object in question before the animation plays out, and you are merely seeing it in its final position. Try looping before messing with the LUA.
At the moment it is only a test^^
I will try the Code... but the i have to disable the start at mapbeginn, right?
Re: Can Flyers(like LA-AT's) fly alone?
Posted: Fri Oct 15, 2010 5:40 am
by DarthD.U.C.K.
yes, as eggman said in his second post
Re: Can Flyers(like LA-AT's) fly alone?
Posted: Sun Oct 17, 2010 5:04 am
by CT-26-6958_Hevy
Yes, I forgot it ^^
EDIT
Sry for doublepost!
Now i have this line:
PlayAnimationFromTo(“laatland”, 10, 15)
But where i have to write it in my lua?
Double posting is against the RULES, please EDIT your post instead -Staff
[code]C:\BF2_ModTools\data_TST\_BUILD\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TST\TSTt_con.lua:44: unexpected symbol near `“'
ERROR[scriptmunge scripts\TST\TSTt_con.lua]:Could not read input file.ERROR[scriptmunge scripts\TST\TSTt_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings
ERROR[levelpack mission\TSTt_con.req]:Expecting bracket, but none was found.
File : munged\pc\tstt_con.script.req(1)...
ucft <--
ERROR[levelpack mission\TSTt_con.req]:Expecting bracket, but none was found.
File : munged\pc\tstt_con.script.req(1)...
ucft <--
2 Errors 0 Warnings
ERROR[levelpack shell.req]:Input file shell.req does not exist. [continuing]
1 Errors 0 Warnings[/code]
and my .lua
Hidden/Spoiler:
[code]--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;
function ScriptPostLoad()
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:Start()
EnableSPHeroRules()
PlayAnimationFromTo(“laatland”, 10, 15)
end
---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
ReadDataFile("dc:Load\\common.lvl")
ReadDataFile("ingame.lvl")[/code]
is this enough from my lua?
Re: Can Flyers(like LA-AT's) fly alone?
Posted: Sun Oct 17, 2010 8:16 am
by Darth_Spiderpig
Munge Log wrote:C:\BF2_ModTools\data_TST\_BUILD\..\..\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TST\TSTt_con.lua:44: unexpected symbol near `“'