Animation and turrets problem

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Animation and turrets problem

Post by Grievous »

Hello,

I currently have 2 problems with my card:

- I put the door of Kashyyyk in my map, and I did the animations again, exactly as the map of Kashyyyk, but in the game the door does not move.

- I put a ship with turrets, but it is imposible to sit in the chairs

thank you in advance for your help
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Animation and turrets problem

Post by Cleb »

For the kashyyyk door did you put this in:
Hidden/Spoiler:
[code] OnObjectKillName(PlayAnimDown, "gatepanel");
OnObjectRespawnName(PlayAnimUp, "gatepanel");
OnObjectKillName(woodl, "woodl");
OnObjectKillName(woodc, "woodc");
OnObjectKillName(woodr, "woodr");
OnObjectRespawnName(woodlr, "woodl");
OnObjectRespawnName(woodcr, "woodc");
OnObjectRespawnName(woodrr, "woodr");
end

function PlayAnimDown()
PauseAnimation("thegateup");
RewindAnimation("thegatedown");
PlayAnimation("thegatedown");
ShowMessageText("level.kas2.objectives.gateopen",1)
ScriptCB_SndPlaySound("KAS_obj_13")
SetProperty("gatepanel", "MaxHealth", 2200)
-- SetProperty("gatepanel", "CurHealth", 50000)
-- PlayAnimation("gatepanel");
--SetProperty("gatepanel", "MaxHealth", 1e+37)
--SetProperty("gatepanel", "CurHealth", 1e+37)


-- Allowing AI to run under gate
UnblockPlanningGraphArcs("seawall1");
DisableBarriers("seawalldoor1");
DisableBarriers("vehicleblocker");

end

function PlayAnimUp()
PauseAnimation("thegatedown");
RewindAnimation("thegateup");
PlayAnimation("thegateup");


-- Allowing AI to run under gate
BlockPlanningGraphArcs("seawall1");
EnableBarriers("seawalldoor1");
EnableBarriers("vehicleblocker");
SetProperty("gatepanel", "MaxHealth", 1000)
SetProperty("gatepanel", "CurHealth", 1000)

end[/code]
Though there are a lot of things in there you can rename aaccording to your map. :wink:
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Animation and turrets problem

Post by Grievous »

no I did not put the lines that you say, because I have not seen in the tutorial there was something to put on.

where and in which file should I put the lines you say ?
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Animation and turrets problem

Post by Cleb »

Oh yeah I forgot, those lines go in your map's lua. The planning and animations are done in ze. I believe "gatepanel" is that thing you have to kill for the door to go down.
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Animation and turrets problem

Post by Grievous »

Thank you, the door works perfectly.

If I do another animation, should I do the same thing as for the door ?

Otherwise, I still haven't resolved my turret's problem.
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Animation and turrets problem

Post by Cleb »

Yes, if you want to do another animation of a kashyyyk door exactly the same, do the same thing, but make sure you change the values to fit the new door. For the turrets, make sure you have linked turrets (look at a space map lua, if you don't have a space map to look at, I believe there is an example one that came with the modtools, but if there isn't, just make a new space map with both eras and name it 'Space'. Now you have a generic space map, don't modify it, just use it for reference and maybe copy/pasting space assets to another map. :wink:
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Animation and turrets problem

Post by Grievous »

I have linked the turrets in zeroeditor, but I don't know what I have to put in lua file. I watched in lua file of the space map, but I don't see the part for the turrets.
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Animation and turrets problem

Post by Bob »

There is nothing to put in the LUAs for a turret. Just place it in ZE.
If you are using the remote chairs from space assault you have to link them to the turret you want to be controlled with it, also in ZE.
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Animation and turrets problem

Post by Locutus »

Mhhh, if i remember correctly you need to set a memory pool for them.

SetMemoryPoolSize("EntityRemoteTerminal", NUMBER)
(Number represents the number of terminals placed in ZE)
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Animation and turrets problem

Post by Grievous »

it's good, the turrets of the ship works for the republic, but not for the cis. There is a need to set for each faction ?

I also wanted to know can you control a tur_bldg_chaingun_roof with a chair as turrets? if so how ?
Post Reply