Home   Help Search Login Register  

Author Topic: Make west/resistance enemy  (Read 1211 times)

0 Members and 2 Guests are viewing this topic.

pazuzu

  • Guest
Make west/resistance enemy
« on: 30 Dec 2004, 08:22:57 »
I'm starting a mission where I have west & res units that I want to be enemy side.

The problem is I want players to be on west side too.

I've heard of grouping east unit to west or res & it makes the whole team east.

If I make the leader of each team east & the leader is killed will the team stay east or go back to being west?

Or would the command setcaptive "false" be a better way to make them enemy units?

Thanks.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Make west/resistance enemy
« Reply #1 on: 30 Dec 2004, 09:18:13 »
Quote
If I make the leader of each team east & the leader is killed will the team stay east or go back to being west?
They will stay east.

Quote
Or would the command setcaptive "false" be a better way to make them enemy units?
Setcaptive false does nothing. If you use setcaptive true on a unit he won't be an enemy to no-one. Setcaptive false is just to disable that command.


Grouping an east leader for a west group will make the west group become east. The command deletevehicle this is commonly used in init field to delete the east leader unit from that group, because it would look a bit stupid to have an east unit in a west group. Not going into that much further, there's plenty of threads about it in the general scripting board.  :)
Not all is lost.

Lean Bear

  • Guest
Re:Make west/resistance enemy
« Reply #2 on: 30 Dec 2004, 13:48:01 »
Yeah, Artak is right. There are loads of threads on this topic in the General Scripting section (why is this in the MP section anyway?).

If you don't want to indulge in a little O2 modeling then that's OK cause BIS have done that for you. In the mission editor, if you insert a new unit and choose the East side, you'll see a unit called "East spy" or something like that. Its basically a West soldier that is classed in the config as an East unit.

So if you use these and set the Res side to hate everyone - you'll achieve the effect you are looking for.

Or you can use the deleteVehicle this command. There may be a problem with that though. (Although I'm not sure about this but..) doesn't that "trick" make the entire West side effectively "East"? I'm probably wrong, but you never know.

pazuzu

  • Guest
Re:Make west/resistance enemy
« Reply #3 on: 30 Dec 2004, 20:41:28 »
Thanks for the reply...


I'm using both Amazon packs.

The Lara Croft one that was just released & the older one.

The Lara Croft one is west side & the older pack is resistance so I was going to just make resistance set to be freindly to east & make sure the leader is always resistance making the west(Lara Croft) enemy too. The player side is west.

I did do a search but couldn't find anything related to what I'm doing...


Thanks again.