Page 1 of 1
Can I kill a connection?
Posted: Tue Feb 02, 2010 10:17 pm
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.
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 2:33 am
by genaral_mitch
Paths or plans? I think, in the lua, you can spawn a barrier on the path.
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 3:12 am
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)
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 4:59 am
by Maveritchell
You can disable and add enable barriers or remove plans in your script:
Code: Select all
DisableBarriers("barrierX")
EnableBarriers("barrierX")
BlockPlanningGraphArcs("ConnectionX")
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 6:23 am
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....
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 6:59 am
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")
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 9:09 am
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.
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 2:56 pm
by mswf
Oh so you can kill paths through scripting? *memorizes fact really hard*
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 3:13 pm
by Aman/Pinguin
mswf wrote:Oh so you can kill paths through scripting? *memorizes fact really hard*
Plannings. Not paths.
Re: Can I kill a connection?
Posted: Wed Feb 03, 2010 4:08 pm
by mswf
Oops, that was a misspronounciation. I meant
mswf wrote:Oh so you can kill connections through scripting? *memorizes fact really hard*
