"own" cp

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
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

"own" cp

Post by Executer94 »

Is it possible that only i can spawn at a cp and not the AI ?

I need this for my Geonosis Mission.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: "own" cp

Post by Eggman »

I'm not sure if it's possible to tell the AI not to spawn at a specific cp they own, but what I did for a similar situation was set up the teams so it was just the player on team 1, the enemy AI on team 2 as normal, and a local team 3 with all of the friendly AI. If by "Geonosis Mission" you mean a campaign/series of objectives type of mode, that setup should work fine for your needs. I can post the team setup section from my .lua if you need an example.

It might be worth your time to take a look at this function: "AllowAISpawn." I can't remember off the top of my head how it's set up, but I'm pretty sure that it allows you to control whether a certain team can spawn (although I don't think it can apply to a specific cp). If all you want to do is prevent the AI on your team from spawning in general, this would probably be the function you want.
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: "own" cp

Post by Executer94 »

that's a great idea

no problem i have the mission scripter :)

so i'am team 1 (no AI)
team 2 (enemy AI)
team3 (local friendly AI [clones])
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: "own" cp

Post by Eggman »

Executer94 wrote:that's a great idea

no problem i have the mission scripter :)

so i'am team 1 (no AI)
team 2 (enemy AI)
team3 (local friendly AI [clones])
Exactly.
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: "own" cp

Post by Executer94 »

thank you
Post Reply