Page 1 of 1

Passable shields only for friendly units? Possible?

Posted: Wed Oct 13, 2010 4:42 pm
by Redline
Hello, I've a short question about passable shields only for friendly units.
Is it possible to set up shields so that they let only pass there own units and block enemy units of passing the shield?
I've tried many different ways but without success.
My last try was this code. Check it out. (This code is not working anyway)
Hidden/Spoiler:
[code]

SoldierCollision = "CLEAR"="0"

TargetEnemy = "1"
TargetNeutral = "1"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "1"
TargetBuilding = "1"

AITargetPerson = "1"
AITargetAnimal = "1"
AITargetDroid = "1"
AITargetVehicle = "1"
AITargetBuilding = "1"


SoundProperty ="shield"
BuildingSound ="shield"[/code]
Well, if you knew other ideas I would be very thankful to you. :wink: :wink:

Re: Passable shields only for friendly units? Possible?

Posted: Wed Oct 13, 2010 4:53 pm
by DarthD.U.C.K.
the line "soldiercollision = "clear"" disables the collision for all soldiers irespectively of their team, i dont think you can do a teamdependend shield via odf-coding

Re: Passable shields only for friendly units? Possible?

Posted: Thu Oct 14, 2010 2:11 pm
by stardestroyer001
Unless you tried setting up the shield code somehow so only, say, Team 1 (Rep/Imp) can go through and Team 2 (CIS/Reb) can't, I don't think it'll work if it's only set to friendlies, enemies, etc. Think of it this way: Because of the nature of the game, in which you can choose to be either team, who are the friendly units? You could play Emps and have Emps go through the shield, then play as Rebs and have the Emps being unable to go through the shield, and vice versa with the Rebs. In short, have it assigned to a team number instead of a player's side.

EDIT: I just realized that my answer wasn't answering the question. :faint: Ok, so it's a workaround suggestion, not a solution to your problem, Redline. If you can't ODF code the shield to do anything like that anyways, then don't worry about it.

Re: Passable shields only for friendly units? Possible?

Posted: Thu Oct 14, 2010 6:00 pm
by Fiodis
stardestroyer001 wrote:Think of it this way: Because of the nature of the game, in which you can choose to be either team, who are the friendly units?
...The ones on your team? That's why these odf lines work:

Code: Select all

TargetEnemy         = "1"
TargetNeutral       = "0"
TargetFriendly      = "0"
They don't specify any specific team.

Re: Passable shields only for friendly units? Possible?

Posted: Sat Oct 16, 2010 8:28 pm
by stardestroyer001
What I meant was, unless Redline wanted one day the Emps to go through the shield and another day they don't, you need to tell the game that the shield allows Team 1 for example to go through and Team 2 to be blocked. That way, if you're Emps, you can go through, and if you decide to play Rebs, then you can't go through, but the Emps still can.

So, essentially, you need to specify a team, or have the object already affiliated with a team to start with.

Re: Passable shields only for friendly units? Possible?

Posted: Sat Oct 16, 2010 9:38 pm
by Fiodis
stardestroyer001 wrote:What I meant was, unless Redline wanted one day the Emps to go through the shield and another day they don't, you need to tell the game that the shield allows Team 1 for example to go through and Team 2 to be blocked. That way, if you're Emps, you can go through, and if you decide to play Rebs, then you can't go through, but the Emps still can.

So, essentially, you need to specify a team, or have the object already affiliated with a team to start with.
Mhm. Where do you specify the team?

Re: Passable shields only for friendly units? Possible?

Posted: Sat Oct 16, 2010 10:45 pm
by FragMe!
If you place the shield object in ZE you can specify the team there same as you would a CP.
Not sure how you are doing the shield though.

Re: Passable shields only for friendly units? Possible?

Posted: Sun Oct 17, 2010 7:44 am
by Lagomorphia
You could have it damage hostiles rather than block them.