Enemy spawns at friendly cps

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
Zeddix

Enemy spawns at friendly cps

Post by Zeddix »

Hello Guys,
i want to know if it is possible to spawn vehicles under the control of the enemy on my commandopost.
If i control one cps the enemy gets vehicle. is it possible?

Zeddix
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Enemy spawns at friendly cps

Post by Grev »

Yes. Set vehicle spawns to be when Rep attk (If you want the team to be rep) and then enter the cis tank into repattk.
Zeddix

Re: Enemy spawns at friendly cps

Post by Zeddix »

Ähm, iam not sure about this. I mean if Rep controls a cp, then for the cis spawns a vehicle far away (Under the control of the cis).
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Enemy spawns at friendly cps

Post by Maveritchell »

You can't set it up with just vehicle spawns; you'd have to script the event in. Since Zerted says that using CreateEntity for vehicles bugs up the primary weapon, your best bet might be to create an uncaptureable, invisible command post for the enemy that has a vehicle spawn attached to it. You can use .lua scripting to disable or enable this command post whenever you want, meaning you'd have control over whether it allowed the enemy to spawn an extra vehicle.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Enemy spawns at friendly cps

Post by FragMe! »

Couldn't you just do a normal vehicle spawn for the command post it is just the vehicle spawn is far away. Because when a vehicle spawns anyone can jump into it you just hope the CIS is close by.
So in the vehicle spawn set up under the Rep parts just put in the name of a CIS vehicle
and put nothing under the CIS parts so if the CIS controls the CP nothing spawns.
You can even put the control zone around the vehicle spawn so if the REP looses control of the CP the vehicle "dies"
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Enemy spawns at friendly cps

Post by woner11 »

No, I don't think it's actually that hard. Just make a vehicle spawn and a control region just like normal by the rep command post. Then move them both to the cis command post. Have the vehicle spawn set for the rep team (doesn't neccessarily have to be a rep vehicle) and also make it set for the reps cp, (cp1) for instance.
Zeddix

Re: Enemy spawns at friendly cps

Post by Zeddix »

Maybe your solutions are all possible with normal vehicles, but i want to spawn an ATAT ot ATTE. So the vehicle must be under the control of the enemy!
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Enemy spawns at friendly cps

Post by woner11 »

Then if you still want it to be for the opposite team and one of those spawn at it vehicles, you would need complicated scripting, that I don't know how to do, either that or its impossible I beleive.
Zeddix

Re: Enemy spawns at friendly cps

Post by Zeddix »

Is there any ood lua guide to learn the lua in SWBF II?
Maybe i cant solve my problem, but i will learn whether its possible or not ;).
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Enemy spawns at friendly cps

Post by FragMe! »

Just to be clear you want to spawn a command walker as opposed to just a walker.
There is lua documentation included with the docs but I am not sure if it will be detailed enough to do what you want.
One thing to do is look through the campain scripts to see how they do things on completion of objectives. Naboo might be a good one to look at.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Enemy spawns at friendly cps

Post by Maveritchell »

Zeddix wrote:Is there any ood lua guide to learn the lua in SWBF II?
Maybe i cant solve my problem, but i will learn whether its possible or not ;).
Maveritchell wrote:You can't set it up with just vehicle spawns; you'd have to script the event in. Since Zerted says that using CreateEntity for vehicles bugs up the primary weapon, your best bet might be to create an uncaptureable, invisible command post for the enemy that has a vehicle spawn attached to it. You can use .lua scripting to disable or enable this command post whenever you want, meaning you'd have control over whether it allowed the enemy to spawn an extra vehicle.
Am I talking to myself?
Zeddix

Re: Enemy spawns at friendly cps

Post by Zeddix »

No no Maveritchell, your not talking to yourself ;)
My poroblem is that i never scriptet lua beside the litte changes in Conquest lua.
Indeed do i know some scriptlanguages but first of all i need something like a library of variables.

I will take a 2. look at the lua documentaion maybe the will help me.

Thanks Zeddix
Post Reply