Can I kill a connection?

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
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Can I kill a connection?

Post by wishihadaname »

I know there is a killobject line that i've been using to great effect. However is there a kill path line? Its really annoying how my guns seem to prefer running arround Point Rain instead of moving ahead like I told them so (Point Rain has a bunch of paths connecting the bunkers and guns) I thought that if I killed some of those paths the AI would have less places to go and actually move on to the next part of the map.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Can I kill a connection?

Post by genaral_mitch »

Paths or plans? I think, in the lua, you can spawn a barrier on the path.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Can I kill a connection?

Post by mswf »

You can't kill the path through lua, but you can spawn a barrier that completely blocks the path. (like the kashyyk seawalls, those are spawned at the beginning of the level, but killed once the seawall gets destroyed, look at the kashyyk .lua for reference)
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Can I kill a connection?

Post by Maveritchell »

You can disable and add enable barriers or remove plans in your script:

Code: Select all

DisableBarriers("barrierX")
EnableBarriers("barrierX")
BlockPlanningGraphArcs("ConnectionX")
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Can I kill a connection?

Post by lucasfart »

just a quick question to add to this, but what are graph arcs??? i've seen them in some of the stock scripts but never really knew what they were for....
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Can I kill a connection?

Post by Maveritchell »

lucasfart wrote:just a quick question to add to this, but what are graph arcs??? i've seen them in some of the stock scripts but never really knew what they were for....
BlockPlanningGraphArcs("ConnectionX")
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Can I kill a connection?

Post by Teancum »

The best way is to load up a stock level in ZE to match up with the LUA. I'd look at the Death Star in the campaign layer along with dea1g_c.lua and it'll be much clearer than text can make it.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Can I kill a connection?

Post by mswf »

Oh so you can kill paths through scripting? *memorizes fact really hard*
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Can I kill a connection?

Post by Aman/Pinguin »

mswf wrote:Oh so you can kill paths through scripting? *memorizes fact really hard*
Plannings. Not paths.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Can I kill a connection?

Post by mswf »

Oops, that was a misspronounciation. I meant
mswf wrote:Oh so you can kill connections through scripting? *memorizes fact really hard*
:oops:
Post Reply