Page 1 of 1
Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 6:35 am
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
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 7:36 am
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.
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 9:29 am
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).
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 10:11 am
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.
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 10:47 am
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"
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 10:50 am
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.
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 8:12 pm
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!
Re: Enemy spawns at friendly cps
Posted: Tue Mar 25, 2008 9:41 pm
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.
Re: Enemy spawns at friendly cps
Posted: Wed Mar 26, 2008 12:22 pm
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

.
Re: Enemy spawns at friendly cps
Posted: Wed Mar 26, 2008 12:39 pm
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.
Re: Enemy spawns at friendly cps
Posted: Wed Mar 26, 2008 12:39 pm
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?
Re: Enemy spawns at friendly cps
Posted: Wed Mar 26, 2008 6:07 pm
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