Page 1 of 1
Force Fields
Posted: Wed Jul 08, 2009 6:50 pm
by Fierfek
Is it possible to use a force shield (polis massa), and only have one side be able to cross it if they have a certain command post? Like, if I had a republic shield with a command post in front of it, the cis would only be able to go through the shield if they controlled the command post outside it. Does anyone know how to do this?
Re: Force Fields
Posted: Wed Jul 08, 2009 6:55 pm
by Maveritchell
All soldiers (units) use the same kind of collision, so what you're talking about isn't really possible. You could set up a region in the same location as the shield that forces any entities on a certain team out if they don't own that command post, but that's a tougher workaround.
Re: Force Fields
Posted: Wed Jul 08, 2009 6:59 pm
by Fierfek
Maveritchell wrote:All soldiers (units) use the same kind of collision, so what you're talking about isn't really possible. You could set up a region in the same location as the shield that forces any entities on a certain team out if they don't own that command post, but that's a tougher workaround.
How do I do that? Is there a tutorial you could lead me to?
Re: Force Fields
Posted: Wed Jul 08, 2009 7:06 pm
by Maveritchell
Fierfek wrote:Maveritchell wrote:All soldiers (units) use the same kind of collision, so what you're talking about isn't really possible. You could set up a region in the same location as the shield that forces any entities on a certain team out if they don't own that command post, but that's a tougher workaround.
How do I do that? Is there a tutorial you could lead me to?
It uses "teleporting" (for lack of a better catch-all); search and you will find. To be honest, given your relative inexperience I would look for a different way to do something creative, because as I mentioned above, doing this right would be difficult.
Re: Force Fields
Posted: Wed Jul 08, 2009 7:08 pm
by Fierfek
Maveritchell wrote:Fierfek wrote:Maveritchell wrote:All soldiers (units) use the same kind of collision, so what you're talking about isn't really possible. You could set up a region in the same location as the shield that forces any entities on a certain team out if they don't own that command post, but that's a tougher workaround.
How do I do that? Is there a tutorial you could lead me to?
It uses "teleporting" (for lack of a better catch-all); search and you will find. To be honest, given your relative inexperience I would look for a different way to do something creative, because as I mentioned above, doing this right would be difficult.
Okay, well thanks anyway. Maybe I'll try this in a couple months.
Re: Force Fields
Posted: Wed Jul 08, 2009 8:13 pm
by [RDH]Zerted
Another way without teleporting would be to enable/disable the field whenever a unit on a certain team walks up to it. To do this, put a region just a bit bigger then the field overlapping it. When the correct team enters the region, the field is disabled. When the correct team leaves the region, the field is re-enabled. A side effect of this is that enemy units would be able to cross at exactly the same time as friendly units.
Re: Force Fields
Posted: Wed Jul 08, 2009 8:39 pm
by Fierfek
[RDH]Zerted wrote:Another way without teleporting would be to enable/disable the field whenever a unit on a certain team walks up to it. To do this, put a region just a bit bigger then the field overlapping it. When the correct team enters the region, the field is disabled. When the correct team leaves the region, the field is re-enabled. A side effect of this is that enemy units would be able to cross at exactly the same time as friendly units.
How do I do this?
Re: Force Fields
Posted: Wed Jul 08, 2009 9:47 pm
by Teancum
Incidentally, when you have a lot of questions, combine them into one post instead of making four or more topics. Thanks

Object Collision
Posted: Thu Jul 09, 2009 9:55 pm
by Fierfek
I want to create a region in my map, where whenever a republic unit steps into it, an invisible collision object is killed, but whenever there are no republic units in it, the invisible collision returns.
I have read the parts in the FAQ/Everything You Need to Know thread, but can't make heads or tails of it.
Also, I want to have a destructable panel, that when it is destroyed, it removes the region so everyone can walk through.
How do I set this up?
Re: Object Collision
Posted: Thu Jul 09, 2009 10:40 pm
by Frisbeetarian
Have you read the documentation? Check out the Battlefront2_scripting_system.doc. You'll want to use OnEnterRegionTeam() and OnExitRegionTeam(). You can just have the destructible panel use DeactivateRegion().
Re: Object Collision
Posted: Thu Jul 09, 2009 10:45 pm
by Fierfek
Frisbeetarian wrote:Have you read the documentation? Check out the Battlefront2_scripting_system.doc. You'll want to use OnEnterRegionTeam() and OnExitRegionTeam(). You can just have the destructible panel use DeactivateRegion().
Woah, just looked at the scripting guide. Lots of useful stuff I hadn't noticed in there.....
Thanks! This should help.
Topics merged, it's best to keep it together -Staff
Re: Object Collision
Posted: Fri Jul 10, 2009 9:46 am
by [RDH]Zerted
That is why you read all the documentation before posting questions. Almost everything is covered in the docs or in other tutorials people have written.