Can I kill a connection?
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Can I kill a connection?
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

- Posts: 1056
- Joined: Fri Aug 14, 2009 12:32 am
Re: Can I kill a connection?
Paths or plans? I think, in the lua, you can spawn a barrier on the path.
-
mswf
- Master Bounty Hunter

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: Can I kill a connection?
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)
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Can I kill a connection?
You can disable and add enable barriers or remove plans in your script:
Code: Select all
DisableBarriers("barrierX")
EnableBarriers("barrierX")
BlockPlanningGraphArcs("ConnectionX")- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Can I kill a connection?
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....
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Can I kill a connection?
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")
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Can I kill a connection?
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

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: Can I kill a connection?
Oh so you can kill paths through scripting? *memorizes fact really hard*
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Can I kill a connection?
Plannings. Not paths.mswf wrote:Oh so you can kill paths through scripting? *memorizes fact really hard*
-
mswf
- Master Bounty Hunter

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: Can I kill a connection?
Oops, that was a misspronounciation. I meant

mswf wrote:Oh so you can kill connections through scripting? *memorizes fact really hard*
