Home   Help Search Login Register  

Author Topic: Side Switching?  (Read 765 times)

0 Members and 1 Guest are viewing this topic.

Durandal

  • Guest
Side Switching?
« on: 28 Dec 2002, 00:40:04 »
Alright, here's another question, this one more tricky for me than the last.

What is the exact init command to get a unit to change sides?  Here's a scenario:  I want to set it up where a specific unit is killed (not a unit of a particular side, but a particular type of unit), the player's side switches.

I've looked through the command ref, and either I missed it in there or it's too complex for me to figure out.

Now, if it's too complex to generate a trigger that will switch the player's side if a specific unit type is killed, I'll settle for if a unit from a specific side is killed.

I'd really appreacate any help any one of you OFP editing vets can throw an up and comer.

Thanks!

-Durandal

Durandal

  • Guest
Re:Side Switching?
« Reply #1 on: 29 Dec 2002, 06:07:43 »
Bump.

Anyone?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Side Switching?
« Reply #2 on: 29 Dec 2002, 06:10:15 »
wat if dere is no command 2 do it ?  :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Durandal

  • Guest
Re:Side Switching?
« Reply #3 on: 29 Dec 2002, 07:08:42 »
There's really no command to change the side of a unit mid-game?  I don't mean change the unit itself, but make other units hostile towards it?  Like, say, when you shoot too many of your allies in the regular game.

-Durandal

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Side Switching?
« Reply #4 on: 29 Dec 2002, 16:27:24 »
arr, that's a tricky one matey. No, you can't change sides mid-game with one simple command, but it is possible to "fake" it. You gotta explain the situation a little better first tho, although I suppose setcaptive modes or addratings might have to be used :(
right, setcaptive you know what does, right? If you setcaptivate yourself no-one will attack you though, but on the other hand all you need it that setcaptive FALSE to make the desired party attack you. This might not work so well if you're actually supposed to fight against someone inbetween  :P

the other solution I can come to think of presently would be to use the addRating command (unit addRating ####), basically when your "rating" drops beneath a certain number (specified in the comref, I think), your allies will start attacking you - this is what happens when you kill your pals. So doing a addrating -10000 might do the trick, but be prepared for annoying "3 - cease fire!" and hearing the radio communications of your side  :-\ also this method won't exactly stop your previous enemies from attacking you, so...

arr, sorry, but that's all I can come to think of, except actually starting a whole new mission (as in a campaign) at the critical moment ;) my suggestion is that you just try to fake it somehow using setCaptives or suchlikes...or maybe change the plot :D

again, sorry but...it's rather hard to do. Maybe Resistance can do it, what do I know  :P  ::)

good luck anyhow!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Durandal

  • Guest
Re:Side Switching?
« Reply #5 on: 30 Dec 2002, 01:27:21 »
Thanks for the tips, Wolf, it's really appreciated.

Actually, what I'm working on is a multiplayer scenario where you're a civilian.  I wanted to have it set so if you're a bad boy, everyone on your side treats you as such.  Now, this is accomplished by default within the way the game is set up already, but I found it took unreasonably long to establish myself as the "bad guy"... I'd have to shoot down four or five fellow civilians in cold blood before anyone would react.  

I figured after the first or second shot they should be out for blood.  Only problem is, how do I link it up to lower the rating when a non-specific civ is killed?  Hmm.. this might be tough, especially since it's multiplayer.  I might have to forego this one.

-Durandal