AI scripting question
Posted: Sun Oct 21, 2007 8:05 am
Okay here's the deal.
I did a newmombasa bsp conversion, also got its ai zones, its ai encounters, weapon + vehicles palletes, characters, ai squads and ai squad types.
I tried this twice.
The first time I put in some marines, and all was well. I was testing to see if the basic ai zones worked. They dodged grenades and moved a little on their own, as I had hoped. However whenever I tried to add an ai vehicle, for example a marine ghost, my map would freeze (as in it would freeze in the menu screen). I used H2 core to rebuild my map and entity to place the ai squad where I wanted them.
Having acquired medium succes with my first attempt, I decided I would now try to script my marines. So I also added Script Positions from newmombasa.
Next I made the following script: e21_mars_pelican0_entry/p2 is one of the script positions. I am aware of the fact I am using another squads script position but I'm not sure if that matters.
My squad is called e20_mars_warthog1, but only contains plain old marines (this squad worked on my first attempt). I linked one of the 3 spawning marines to this command script. However with this script in place, my map freezes as well. I can however pause it with yelo and fly around at the very beginning. When I unpause it it freezes. And I can see the marines.
My question to you, the audience, is: am I doing something wrong with my script? And why are my vehicles freezing?
I kindly thank you in advance.
L0d3x
I did a newmombasa bsp conversion, also got its ai zones, its ai encounters, weapon + vehicles palletes, characters, ai squads and ai squad types.
I tried this twice.
The first time I put in some marines, and all was well. I was testing to see if the basic ai zones worked. They dodged grenades and moved a little on their own, as I had hoped. However whenever I tried to add an ai vehicle, for example a marine ghost, my map would freeze (as in it would freeze in the menu screen). I used H2 core to rebuild my map and entity to place the ai squad where I wanted them.
Having acquired medium succes with my first attempt, I decided I would now try to script my marines. So I also added Script Positions from newmombasa.
Next I made the following script: e21_mars_pelican0_entry/p2 is one of the script positions. I am aware of the fact I am using another squads script position but I'm not sure if that matters.
Code: Select all
(script command cs_e20_warthog1Test
(begin
(cs_go_to e21_mars_pelican0_entry/p2)
)
)
My question to you, the audience, is: am I doing something wrong with my script? And why are my vehicles freezing?
I kindly thank you in advance.
L0d3x